update invoice amount

This commit is contained in:
edmondlang
2023-06-30 15:34:38 +08:00
parent e88ea52e1e
commit 076f3eb40b
+1 -2
View File
@@ -175,8 +175,7 @@
<td class="right middle">Total</td>
<td class="total right middle">
@if($transaction->booking()->first()->fix_currency_id !== 1)
{{-- {{ number_format( ((1/$currency_rate) * $transaction->amount) + $transaction->service_charge + $transaction->tax + $voucher_discount, 2) }} --}}
{{ number_format($subtotal, 2) + $transaction->service_charge + $transaction->tax + $voucher_discount, 2) }}
{{ number_format( number_format($subtotal, 2) + $transaction->service_charge + $transaction->tax + $voucher_discount, 2) }}
@else
{{ number_format($transaction->amount + $transaction->service_charge + $transaction->tax + $voucher_discount, 2) }}
@endif