From 6bfab30f14fac5c8e67b88dbdd7f81f8300fe760 Mon Sep 17 00:00:00 2001 From: Patrick Lucas Date: Wed, 21 Jul 2021 14:07:06 +0200 Subject: [PATCH] Add tax column to invoices When an invoice has tax per item enabled, include a tax column so that it's clear how much tax is being applied to each item. --- .../views/app/pdf/invoice/partials/table.blade.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/views/app/pdf/invoice/partials/table.blade.php b/resources/views/app/pdf/invoice/partials/table.blade.php index 98ee76db..14890953 100644 --- a/resources/views/app/pdf/invoice/partials/table.blade.php +++ b/resources/views/app/pdf/invoice/partials/table.blade.php @@ -7,6 +7,9 @@ @if($invoice->discount_per_item === 'YES') @lang('pdf_discount_label') @endif + @if($invoice->tax_per_item === 'YES') + @lang('pdf_tax_label') + @endif @lang('pdf_amount_label') @php @@ -54,6 +57,15 @@ @endif + @if($invoice->tax_per_item === 'YES') + + {!! format_money_pdf($item->tax, $invoice->user->currency) !!} + + @endif +