Jump to content

Hours in client area and admin invoise/transaction


arsen99

Recommended Posts

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

Link to comment
Share on other sites

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. :roll:

 

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. :idea:

 

AQCiqLA.png

 

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.

Link to comment
Share on other sites

WHMCS doesn't store the time it creates an invoice in the database - only the date. :roll:

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated