Jump to content

PDF Invoice: add "sales tax" line.


Recommended Posts

I am in the U.S. and would like a separate line reading "Sales Tax" on my PDF invoice. I understand that the change is made in the PDF.php, but I don't know what code to add, and on what line. Thank you for any help. I would consider a module, but that is the only change that I need to make. I understand that I can change the wording in the BO. Thank you!

 

How I would like the invoice to read:

 

Sub Total:

Sales Tax:

Total Shipping:

Order Total:

 

Also, it would be great if I could "comment" out the last line on the invoice, showing the tax breakdown. However, I don't know which line.

 

Hope someone can tell me how to do this.

Link to comment
Share on other sites

Hi dixie,

 

I'm trying to change my invoice too

 

I believe that the change you want to do should be done in the method "invoice" of the class "PDF.php", bellow the comment "Display price summation" you should find "Total products (Tax ecl)" and "Total products (Tax incl)" I guess that you just need to add your new code between these blocs

 

They are using "fpdf" to generate pdfs, in case you need further details about it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...