Tax rate column in Invoice PDF


I’d like to add a new column in invoice PDF, to state the tax % of each item. So when the PDF is created, for each item it will show something like: Description, number of items, price per item, total price and the tax rate that applies.

I have made all the necessary changes in application/views/invoice_templates/pdf/default.php about the layout but I’m missing the php variable that holds each item’s tax rate.

Thank you in advance.

Took me some time but I got it! The variable is $item->item_tax_rate_percent and the full statement to insert it is <?php echo format_amount($item->item_tax_rate_percent); ?>

I used format_amount() to honor the decimal and thousand seperator configured under Settings->System Settings