From 640e7291b9cb941407b7a64c3581677764d946ee Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Wed, 6 Mar 2024 22:17:04 +0800 Subject: [PATCH] disabled maklumat keuntungan and hapus ansuran dan fixed bug nokp more than 13 have special characters. --- resources/views/customers/v2/index.blade.php | 37 +++++++++++-------- resources/views/customers/v2/info.blade.php | 2 +- resources/views/penebusan/v2/index.blade.php | 22 +++++------ .../print/laporan_stokauditbackdate.blade.php | 13 ++++--- .../print/laporan_stokauditcombine.blade.php | 6 +++ 5 files changed, 47 insertions(+), 33 deletions(-) diff --git a/resources/views/customers/v2/index.blade.php b/resources/views/customers/v2/index.blade.php index 934d9bf..98b79c0 100644 --- a/resources/views/customers/v2/index.blade.php +++ b/resources/views/customers/v2/index.blade.php @@ -1220,22 +1220,29 @@ var nokp = $('#noic').val(); if(id_type=='nokp'){ if($.isNumeric(nokp) == false){ - Swal.fire({ - icon: 'error', - title: 'Amaran!', - text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan' - }); - event.preventDefault(); - return false; + if(nokp.substr(-1) != '*') + { + console.log('ada special characters'); + Swal.fire({ + icon: 'error', + title: 'Amaran!', + text: 'Sila Masukkan Nombor Sahaja Pada No KP Pelanggan' + }); + event.preventDefault(); + return false; + } } if(nokp.length != 12){ - Swal.fire({ - icon: 'error', - title: 'Amaran!', - text: 'Sila Periksa No KP Pelanggan' - }); - event.preventDefault(); - return false; + if(nokp.substr(-1) != '*') + { + Swal.fire({ + icon: 'error', + title: 'Amaran!', + text: 'Sila Periksa No KP Pelanggan' + }); + event.preventDefault(); + return false; + } } }else if(id_type=='passport'){ // if(nokp.length < 5){ @@ -1282,4 +1289,4 @@ @endpush -@endsection +@endsection \ No newline at end of file diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index 0b951e4..8ed773c 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -246,7 +246,7 @@ - + {{-- --}} diff --git a/resources/views/penebusan/v2/index.blade.php b/resources/views/penebusan/v2/index.blade.php index 12bcfb6..002a6d7 100644 --- a/resources/views/penebusan/v2/index.blade.php +++ b/resources/views/penebusan/v2/index.blade.php @@ -70,14 +70,14 @@ -
+ {{--
- +
-
+
--}} @@ -90,11 +90,11 @@
@@ -935,7 +935,7 @@
-

Tanya Upah

+

MAKLUMAT KEUNTUNGAN

@@ -947,7 +947,7 @@
- TEMPOH JANAAN + TEMPOH GADAIAN
@@ -3546,7 +3546,7 @@ var patternregex = /\s+|[-,\/]/g; wakil = wakil.replace(patternregex,"").toUpperCase(); -if(wakil.length <= 12) +if(wakil.length <= 12 || (wakil.substr(-1) == '*' && wakil.length == 13)) { $.ajax({ method:'GET', @@ -3595,7 +3595,7 @@ else Swal.fire({ icon: 'error', titleText: 'Kad Pengenalan dan Passport', - text: 'mestilah tidak melebihi dan kurang daripada 12 patah perkataan' + text: 'mestilah tidak melebihi dan kurang daripada 13 patah perkataan termasuk (*)' }); } @@ -4373,4 +4373,4 @@ return true; -@endsection +@endsection \ No newline at end of file diff --git a/resources/views/print/laporan_stokauditbackdate.blade.php b/resources/views/print/laporan_stokauditbackdate.blade.php index 7fe3fe5..8c687fb 100644 --- a/resources/views/print/laporan_stokauditbackdate.blade.php +++ b/resources/views/print/laporan_stokauditbackdate.blade.php @@ -249,13 +249,12 @@ {{ number_format($item['kadarupah'],2) }} {{ number_format($item['tempohblmbyar'],2) }} {{ number_format($item['upahblmbyar'],2) }} - {{ number_format($item['pinjaman']* 0.01,2) }} - - @if($item['ujrah'] ='0.00') + {{ number_format($item['utgonepercent'],2) }} + {{-- @if($item['ujrah'] != '0.00') --}} {{ number_format($item['ujrah'],2) }} - @endif + {{-- @endif --}} {{$item['lanjutan']}} @@ -268,8 +267,10 @@ {{ number_format($stokaudit['totalpinjaman'],2) }} {{ number_format($stokaudit['totalbakipjm'],2) }} - + {{ number_format($stokaudit['totaltunggakan'],2) }} + {{ number_format($stokaudit['totalonepercent'],2) }} + {{ number_format($stokaudit['totalujrah'],2) }} @@ -297,4 +298,4 @@ DI SAHKAN - + \ No newline at end of file diff --git a/resources/views/print/laporan_stokauditcombine.blade.php b/resources/views/print/laporan_stokauditcombine.blade.php index 4afced2..15f3292 100644 --- a/resources/views/print/laporan_stokauditcombine.blade.php +++ b/resources/views/print/laporan_stokauditcombine.blade.php @@ -225,6 +225,8 @@ Kadar Upah Tempoh Belum Bayar Keuntungan Belum Bayar (RM) + Ujrah (RM) + Keuntungan 1% (RM) Lanjutan @php $counter = 1;$totalpinjaman = 0; @endphp @@ -244,6 +246,8 @@ {{ number_format($item['kadarupah'],2) }} {{ number_format($item['tempoh'] - $item['tempohbayar'],2) }} {{ number_format($item['tunggakan'],2) }} + {{ number_format($item['tunggakanujrah'],2) }} + {{ number_format($item['tunggakanonepercent'],2) }} {{-- {{ number_format($item['pinjaman'],2) }} --}} {{$item['lelong_tawarruq']}} @@ -258,6 +262,8 @@ {{ number_format($stokaudit_aktif['totaltunggakan'],2) }} + {{ number_format($stokaudit_aktif['totalujrah'],2) }} + {{ number_format($stokaudit_aktif['totalonepercent'],2) }}