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.
This commit is contained in:
Patrick Lucas
2021-07-21 14:07:06 +02:00
parent d972279adc
commit 6bfab30f14

View File

@ -7,6 +7,9 @@
@if($invoice->discount_per_item === 'YES')
<th class="pl-10 text-right item-table-heading">@lang('pdf_discount_label')</th>
@endif
@if($invoice->tax_per_item === 'YES')
<th class="pl-10 text-right item-table-heading">@lang('pdf_tax_label')</th>
@endif
<th class="text-right item-table-heading">@lang('pdf_amount_label')</th>
</tr>
@php
@ -54,6 +57,15 @@
</td>
@endif
@if($invoice->tax_per_item === 'YES')
<td
class="pl-10 text-right item-cell"
style="vertical-align: top;"
>
{!! format_money_pdf($item->tax, $invoice->user->currency) !!}
</td>
@endif
<td
class="text-right item-cell"
style="vertical-align: top;"