From 076f3eb40b4fdfe62976574131a5ae3c92dc548d Mon Sep 17 00:00:00 2001 From: edmondlang Date: Fri, 30 Jun 2023 15:34:38 +0800 Subject: [PATCH] update invoice amount --- resources/views/pages/pdfs/invoice.blade.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/views/pages/pdfs/invoice.blade.php b/resources/views/pages/pdfs/invoice.blade.php index 962177aa..77bad44a 100644 --- a/resources/views/pages/pdfs/invoice.blade.php +++ b/resources/views/pages/pdfs/invoice.blade.php @@ -175,8 +175,7 @@ Total @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