mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
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:
@ -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;"
|
||||
|
||||
Reference in New Issue
Block a user