Remove "Item Tax" Line

I am GST registered now. I have the problem that I would like to have just one line under the sub total saying 15% Gst and not a second line with Item Tax. At the moment the invoice is showing two lines , one with Item tax showing the Gst amount and a second line with 15% Gst with Zero amount, which is incorrect.
Help!

Thanks.

Hello @SHIKATSO_TECH
InvoicePlane is quite modular when it comes to the template of the invoices (see Using Templates - InvoicePlane Wiki). Could you kindly explain a bit further your issue (ev. with screenshots) and tell us if you would like to change the web view or the pdf layout?

1 Like

@ naui95

I want to change the PDF layout of the tax invoice. As you can see on the invoice picture attached the GST amount is showing on two lines now. I would like to just have one line as follows…

+15% GST and the $ amount …
and not the two lines.

Thank you.

application/views/invoice_templates/pdf/InvoicePlane.php

<?php
if ($invoice->invoice_item_tax_total > 0) {
?>
        <tr>
            <td class="text-right" colspan="<?php echo $colspan ?>">
                <?php _trans('item_tax'); ?>
            </td>
            <td class="text-right">
                <?php echo format_currency($invoice->invoice_item_tax_total); ?>
            </td>
        </tr>
<?php
}
?>

<?php
foreach ($invoice_tax_rates as $invoice_tax_rate) {
?>
        <tr>
            <td class="text-right" colspan="<?php echo $colspan ?>">
                <?php echo htmlsc($invoice_tax_rate->invoice_tax_rate_name) . ' (' . format_amount($invoice_tax_rate->invoice_tax_rate_percent) . '%)'; ?>
            </td>
            <td class="text-right">
                <?php echo format_currency($invoice_tax_rate->invoice_tax_rate_amount); ?>
            </td>
        </tr>
<?php
}
?>