fix tax-per-item issue

This commit is contained in:
Mohit Panjwani
2021-07-16 11:49:56 +05:30
parent 2b80082996
commit d3a745605e
2 changed files with 13 additions and 25 deletions

View File

@ -79,16 +79,16 @@
</tr>
@if ($invoice->tax_per_item === 'YES')
@for ($i = 0; $i < count($labels); $i++)
@foreach ($taxes as $tax)
<tr>
<td class="border-0 total-table-attribute-label">
{{$labels[$i]}}
{{$tax->name.' ('.$tax->percent.'%)'}}
</td>
<td class="py-2 border-0 item-cell total-table-attribute-value">
{!! format_money_pdf($taxes[$i], $invoice->user->currency) !!}
{!! format_money_pdf($tax->amount, $invoice->user->currency) !!}
</td>
</tr>
@endfor
@endforeach
@else
@foreach ($invoice->taxes as $tax)
<tr>