fix total discount issue

This commit is contained in:
spvarma
2020-12-24 13:43:29 +05:30
parent fa512629d9
commit 8b04e94446
2 changed files with 50 additions and 44 deletions

View File

@ -94,7 +94,7 @@
</tr> </tr>
@endforeach @endforeach
@endif @endif
@if($estimate->discount > 0)
@if ($estimate->discount_per_item === 'NO') @if ($estimate->discount_per_item === 'NO')
<tr> <tr>
<td class="pl-10 border-0 total-table-attribute-label"> <td class="pl-10 border-0 total-table-attribute-label">
@ -115,6 +115,7 @@
</td> </td>
</tr> </tr>
@endif @endif
@endif
<tr> <tr>
<td class="py-3"></td> <td class="py-3"></td>
<td class="py-3"></td> <td class="py-3"></td>

View File

@ -39,6 +39,7 @@
> >
{!! format_money_pdf($item->price, $invoice->user->currency) !!} {!! format_money_pdf($item->price, $invoice->user->currency) !!}
</td> </td>
@if($invoice->discount_per_item === 'YES') @if($invoice->discount_per_item === 'YES')
<td <td
class="pl-10 text-right item-cell" class="pl-10 text-right item-cell"
@ -52,6 +53,7 @@
@endif @endif
</td> </td>
@endif @endif
<td <td
class="text-right item-cell" class="text-right item-cell"
style="vertical-align: top;" style="vertical-align: top;"
@ -100,6 +102,7 @@
@endforeach @endforeach
@endif @endif
@if($invoice->discount > 0)
@if ($invoice->discount_per_item === 'NO') @if ($invoice->discount_per_item === 'NO')
<tr> <tr>
<td class="border-0 total-table-attribute-label"> <td class="border-0 total-table-attribute-label">
@ -120,6 +123,8 @@
</td> </td>
</tr> </tr>
@endif @endif
@endif
<tr> <tr>
<td class="py-3"></td> <td class="py-3"></td>
<td class="py-3"></td> <td class="py-3"></td>