Page 1 of 1

Added VAT number to invoice now it shows on older pre vat invoices

Posted: Wed Mar 31, 2021 7:55 am
by 14Steve14
Another silly VAT change question.

I have just added my new VAT number to my invoice and it now shows on all previous invoices, which |I would expect it to. I have added it to a custom invoice template in the header section where the store address is, as it seemed easiest. That text is added in the admin/includes/languages/english/invoice.php file and not taken from the actual admin store address in the databse.

Is there a way of getting the number to only show on future invoices? I expect not without a lot of changes.

Re: Added VAT number to invoice now it shows on older pre vat invoices

Posted: Wed Mar 31, 2021 8:09 am
by puddlec
could you wrap the part that shows your VAT number in an if statement? e.g. if the date if newer than x date then show the VAT number