arsen99 Posted October 5, 2016 Share Posted October 5, 2016 hello I'm now on WHMCS 7.0 Please tell me if it is possible - I want in admin panel in invoice/transaction sub-menu see also exact time with hours and minutes when invoice was created. Now I see only date like - 05/10/2016, and it's not enough.If you have 70 invoices from one day you really don't know if this invoice is from morning or from evening, you have to open each one. Same situation in client area, client see only something like this - Wednesday, October 5th, 2016, but where is an hour? When he has 15 invoices in one day he really can not distinguish them. Please tell me if I can change it in whmcs admin, or in .tpl file? I just found - Client Date Format - but there is no hours... ty 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 6, 2016 Share Posted October 6, 2016 Please tell me if I can change it in whmcs admin, or in .tpl file? I just found - Client Date Format - but there is no hours... WHMCS doesn't store the time it creates an invoice in the database - only the date. on the client side, you could write an action hook to query the invoiceitems database table and then modify the output in the template to show the first line of the invoice description - while it won't give you times, it should allow the customer to identify what the invoice is for, and also allow them to filter the table on that description. the image below is from a v6.2.2 dev install, but I have no reason to think that it wouldn't work in v7 too. on the admin side, it would probably be easier to either use the search filter on the invoices page (if looking for a specific invoice), or to write a custom report that also showed line descriptions - most of the admin side isn't templated and not as simple to just add an additional column to an existing table. 0 Quote Link to comment Share on other sites More sharing options...
vbatra Posted October 10, 2016 Share Posted October 10, 2016 WHMCS doesn't store the time it creates an invoice in the database - only the date. I think a hook can be created for InvoiceCreated and it will save the time with Invoice ID and another hook to display the time when invoice is be viewed using ViewInvoiceDetailsPage hook On a second thought: I changed the type of date column in tblinvoice to timestamp and it seems to save the time information when a new invoice was created but in WHMCS it only displays the date. Not sure if the output can be tweaked to display the time or it might have some side effects 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.