fix invoice amount error

This commit is contained in:
edmondlang
2023-07-17 13:06:27 +08:00
parent 17183a7b58
commit 3f89023857
+2 -2
View File
@@ -180,9 +180,9 @@
$rounded_voucher = (float)number_format($voucher_discount, 2,'.','');
@endphp
@if($transaction->booking()->first()->fix_currency_id !== 1)
{{ number_format( ((1/$transaction->currency_rate) * $transaction->amount) + $transaction->service_charge + $transaction->tax, 2) }}
{{ number_format( ((1/$transaction->currency_rate) * $transaction->amount) + $transaction->service_charge + $transaction->tax + $rounded_voucher, 2) }}
@else
{{ number_format($transaction->amount + $transaction->service_charge + $transaction->tax, 2) }}
{{ number_format($transaction->amount + $transaction->service_charge + $transaction->tax + $rounded_voucher, 2) }}
@endif
</td>
</tr>