Jump to content

How to alter the VAT report quaterly dates


kwood

Recommended Posts

I was wondering if I could have some guidance please. At current there is a VAT report that can be run and will give the total amount of VAT in a specific quarter. But the quarter is based on Apr-June etc.

I need to change it to May-July etc. I have tried to do it myself, but it doesn't work. Is someone able to help me with this please?

Thank you

Link to comment
Share on other sites

You need to replace the definitions of the quarters with their new names;

$periodLabels = array(1 => 'February - April', 2 => 'May - July', 3 => 'August - October', 4 => 'November - January');

And also replace these two lines:

$queryStartDate = mktime(0, 0, 0, ($a - 1) * 3 + 1, 1, $i);
$queryEndDate = mktime(0, 0, 0, $a * 3 + 1, 0, $i);

with this:

$queryStartDate = mktime(0, 0, 0, ($a - 1) * 3 + 2, 1, $i);
$queryEndDate = mktime(0, 0, 0, $a * 3 + 2, 0, $i);

I think that should do it.

Edited by steph.hope
clarification
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