Jump to content

[REPORTS] Invoices Unpaid per Client


Recommended Posts

Here you go...

 

I think you are using a different time format than I am/was using.

 

Open the script and change the following 2 lines:

 

Original: dd/mm/yyyy

$duedate = explode('/',$date);

$duedate = mktime(0, 0, 0, $duedate[1], $duedate[0], $duedate[2]);

 

New: if you use points between dd mm and yyyy change / to .

$duedate = explode('/',$date);

example: $duedate = mktime(0, 0, 0, mm, dd, yyyy);

$duedate = mktime(0, 0, 0, $duedate[1], $duedate[0], $duedate[2]);

 

So change the $duedate[] to the appropiate place according to the explode.

 

For example if you use dateformat yyyy/mm/dd the formula is:

$duedate = mktime(0, 0, 0, $duedate[1], $duedate[2], $duedate[0]);

 

I hope you understand.

 

Regards,

Justin

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