Jump to content

VAT rate change help


hatster

Recommended Posts

Hi Guys,

 

Our VAT rate here in Spain is due to change from 18% to 21% on the 1st September. In Spanish accounting, vat is calculated on the day of payment, NOT on the day of the order/invoice (as in the uk for example). When i change the vat rate in whmcs is there any way to apply this new rate to all existing invoices ?

 

Thankyou,

 

James,

Link to comment
Share on other sites

Hi James,

 

There was a "How to" guide written for the UK VAT increase which covers this for you at http://docs.whmcs.com/How_To_Guides

 

It looks like you would need the third set of code modified to do what you want e.g.

 

UPDATE tblinvoices SET taxrate=21,tax=subtotal*0.21,total=subtotal+tax-credit WHERE status='Unpaid'

AND taxrate=18 AND duedate>='2012-09-01';

 

As with all DB actions back up and test, test, test before you apply it to live!

Link to comment
Share on other sites

VAT rate here in Spain is due to change from 18% to 21% on the 1st September.vat is calculated on the day of payment, NOT on the day of the order.

 

 

 

regards,

Bizworldusa.

 

Yep, So that's why I guess you run the query for UNPAID invoices. Whether or not you want to include a due date depends on your invoice profile.

Link to comment
Share on other sites

simply remove the date condition from the query:

AND duedate>='2012-09-01'

 

it will update every Unpaid invoice, so every client that will pay from now on will actually pay 20% and not 18...

(it doesn't matter when the invoice is due and/or when was it created)

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