Jump to content

Editing pdf invoice


flix

Recommended Posts

I'd like to edit one part of the pdf invoices that my shop generates for customers.

On the bottom row of the form underneath Tax, it's displaying 20,000% - even though my tax rate is set to 20% throughout the store. All the figures are calculated and show correctly, it's just the format of the tax rate I want to change.

 

As far as I can see there's no way to edit this figure under pdf translations, so I figure it must be classes/pdf.php that needs editing. Does any have any ideas about what needs to be changed?

Thanks

Link to comment
Share on other sites

it is the pdf.php class file.

 

the line you want is...

$this->Cell($w[1], $lineSize, number_format($tax_rate, 3, ',', ' ').' %', 0, 0, 'R');

 

there is a number 3 after $tax_rate. This means 3 decimals. You might try changing it to

$this->Cell($w[1], $lineSize, number_format($tax_rate).' %', 0, 0, 'R');

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