Jump to content
Sign in to follow this  
kwood

How to alter the VAT report quaterly dates

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

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
Share on other sites

.. and remember not to edit the original vat_moss.php report file - duplicate it and edit that... the original will get overwritten during an update and any changes you make to it would be lost.

Share this post


Link to post
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.

Sign in to follow this  

  • 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