From 88c5acbd92f5b329c5a670de8cb75b375d85c7a7 Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Mon, 30 Dec 2024 12:07:20 +0800 Subject: [PATCH] fix bakipembiayaan + keuntungan (based on shahmi operasi) --- .../print/resittebusautotawarruq.blade.php | 65 ++++++++----------- 1 file changed, 27 insertions(+), 38 deletions(-) diff --git a/resources/views/print/resittebusautotawarruq.blade.php b/resources/views/print/resittebusautotawarruq.blade.php index 318e7e7..96e01fa 100644 --- a/resources/views/print/resittebusautotawarruq.blade.php +++ b/resources/views/print/resittebusautotawarruq.blade.php @@ -452,15 +452,10 @@ hr.new5 { - - - - - - + @php $temp_loan = $gadai['bakipjm'] + $transaction_keuntungan['bayaran_keuntungan']; @endphp - + @@ -469,24 +464,24 @@ hr.new5 { - - - - - - - - - - + @php $total = $temp_loan - $temp_totalpay; @endphp - + + + + + + + + + + - +
Baki Pembiayaan : RM {{ number_format($gadai['bakipjm'],2) }}
(+) Keuntungan (Semasa)B. Pembiayaan + Keuntungan : RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} : RM {{ number_format($temp_loan,2) }}
(-) Bayaran Pelanggan: RM {{ number_format($temp_totalpay,2) }}
Jumlah BayaranJumlah Bayaran : RM {{ number_format($total,2) }}: RM {{ number_format($total,2) }}
Pembiayaan Baru : RM {{ number_format($gadai['bakipjm'] - $transaction_keuntungan['bayaran_pembiayaan'],2) }} : RM {{ number_format($gadai['bakipjm'] - $transaction_keuntungan['bayaran_pembiayaan'],2) }}
@@ -602,37 +597,31 @@ hr.new5 {
- - - - - - + @php $temp_loan = $gadai['bakipjm'] + $transaction_keuntungan['bayaran_keuntungan']; @endphp - + @php $temp_totalpay = $transaction_keuntungan['bayaran_pembiayaan'] + $transaction_keuntungan['bayaran_keuntungan']; @endphp - - - - - - - - - - - + @php $total = $temp_loan - $temp_totalpay; @endphp - + + + + + + + + + +
Baki Pembiayaan : RM {{ number_format($gadai['bakipjm'],2) }}
(+) Keuntungan (Semasa)B. Pembiayaan + Keuntungan : RM {{ number_format($transaction_keuntungan['bayaran_keuntungan'],2) }} : RM {{ number_format($temp_loan,2) }}
(-) Bayaran Pelanggan : RM {{ number_format($temp_totalpay,2) }}
Jumlah BayaranJumlah Bayaran : RM {{ number_format($total,2) }}: RM {{ number_format($total,2) }}
Pembiayaan Baru