From de419d91cf7971a50e96ed900d38aa662a4b4c5b Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Mon, 27 May 2024 15:17:54 +0800 Subject: [PATCH] fix sag jenisAT --- resources/views/penebusan/v2/index.blade.php | 2 +- resources/views/print/sag_ujrah_3.blade.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index 94397f2..6f15f9f 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -3072,7 +3072,7 @@ let nm = parseFloat($('#nilai_marhun_total_fix').text().replace(/[^0-9.-]+/g,""));let ber = $('#berat_marhun_total').text();let marg = marginsemasa; let komen = ''; - if(pinjamanbaru >= 10000) + if(pinjaman_baru >= 10000) { komen = "[Pembiayaan Semula] Pembiayaan Melebihi RM 10,000"; } diff --git a/resources/views/print/sag_ujrah_3.blade.php b/resources/views/print/sag_ujrah_3.blade.php index 7de897c..f15b558 100644 --- a/resources/views/print/sag_ujrah_3.blade.php +++ b/resources/views/print/sag_ujrah_3.blade.php @@ -335,6 +335,7 @@ // check if sag is pembiayaan semula if ($gadai_detail['historygadaian'] == '' || $gadai_detail['historygadaian'] == '0') { + $jenisAT = $gadai_detail['tag_tebus']; $is_pembiayaan_semula = false; } else { $jenisAT = $gadai_detail['tag_tebus']; @@ -1189,7 +1190,7 @@
-
{{ ($jenisAT != 'AT') ? $jenisAT : (PS) }}{{ $gadai_detail['percentpinj'] }}%
+
{{ ($jenisAT != 'AT') ? $jenisAT : '(PS)' }}{{ $gadai_detail['percentpinj'] }}%
SALINAN Pejabat
@@ -1501,7 +1502,7 @@
- {{ ($jenisAT != 'AT') ? $jenisAT : PS }} + {{ ($jenisAT != 'AT') ? $jenisAT : 'PS' }}