Merge branch 'discount-issue' into 'master'

fix total discount issue

See merge request mohit.panjvani/crater-web!655
This commit is contained in:
Mohit Panjwani
2021-01-06 06:58:07 +00:00
2 changed files with 50 additions and 44 deletions

View File

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

View File

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