jonathanMahapa Posted January 6 Share Posted January 6 Good day, In the WHMCS client area, invoices are currently listed with the oldest invoice at the top and the newest at the bottom. How can I change this so that the most recent invoice appears at the top of the list? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted January 8 Administrators Share Posted January 8 Hi @jonathanMahapa, The client area invoice list is sorted by status and then age, so that the oldest unpaid invoice is displayed first. The table supports sorting by multiple criteria, so one can Ctrl + Click the "Unpaid" and "Invoice Date" columns to sort by status and see the newest/oldest invoices. You can also customise this in the template by changing the sort order attribute from asc to desc. https://github.com/WHMCS/templates-twenty-one/blob/58393ff844e730f2c995a57b6a0834e0a003ded6/clientareainvoices.tpl#L8 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted Friday at 11:02 PM Share Posted Friday at 11:02 PM On 1/8/2026 at 9:00 PM, WHMCS John said: The table supports sorting by multiple criteria, so one can Ctrl + Click the "Unpaid" and "Invoice Date" columns to sort by status and see the newest/oldest invoices. @WHMCS John That is not intuitive at all for the end user (our customers). For the price increases we all just received, WHMCS should just fix this for all future releases. It will take a developer less than a minute to do so. 0 Quote Link to comment Share on other sites More sharing options...
wtools Posted Saturday at 05:13 AM Share Posted Saturday at 05:13 AM @WHMCS John at least is there a way to do it by some hook? So we can set a default sorting behavior? Updating the template is a bad idea as it will be gone during the WHMCS upgrade. 0 Quote Link to comment Share on other sites More sharing options...
Administrators WHMCS John Posted Sunday at 10:20 PM Administrators Share Posted Sunday at 10:20 PM Hi @Evolve Web Hosting, The oldest unpaid invoice is displayed first so that clients are guided to clear their most overdue debt to you first. If a pluraliry of users would like us to change the default sort order, we can certainly do so. @wtools please use a Child Theme to retain your customisation on update. 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted Monday at 06:58 PM Share Posted Monday at 06:58 PM 20 hours ago, WHMCS John said: If a pluraliry of users would like us to change the default sort order, we can certainly do so. I don't think you need a majority of users to request this. It is pretty straightforward that unpaid invoices should be at the top followed by the most recently paid invoices. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted Monday at 08:13 PM Share Posted Monday at 08:13 PM Plurality just means "the largest amount", which is not always the "majority". More like of 100 people, 36% said yes, 34 no and 30 undecided, the "yes" people would be the plurality. Of course, we might not learn the sampling group size, or if it's asked of anyone, so it's really vague. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.