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

Open to all! Ask other shopowners for help.
Post Reply
14Steve14
Senior Contributor
Posts: 921
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

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

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
puddlec
Member
Posts: 31
Joined: Mon Dec 07, 2020 3:11 pm
Phoenix Version:
Has thanked: 1 time
Been thanked: 7 times

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

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply