From 962238b2f742a42bb8c061e042060affe39fb211 Mon Sep 17 00:00:00 2001 From: MUHD HAFIFIE Date: Wed, 9 Jun 2021 17:02:19 +0800 Subject: [PATCH] fix skit2 --- .../views/homepage/penilai/home.blade.php | 24 +++++++++++++++++++ resources/views/lelongan/index.blade.php | 10 ++++---- resources/views/penebusan/index.blade.php | 3 ++- .../views/print/resittebussebelum.blade.php | 4 ++-- 4 files changed, 34 insertions(+), 7 deletions(-) diff --git a/resources/views/homepage/penilai/home.blade.php b/resources/views/homepage/penilai/home.blade.php index f5fc33d..c43e623 100644 --- a/resources/views/homepage/penilai/home.blade.php +++ b/resources/views/homepage/penilai/home.blade.php @@ -170,6 +170,7 @@
+
@@ -288,6 +289,29 @@ location.reload(); }); + function checkallfunction(){ + let totalmarhun = 0; + + if(this.checked) { + // Iterate each checkbox + $(':checkbox').each(function() { + let marhun = Number($(this).data("marhun")); + totalmarhun += marhun; + this.checked = true; + }); + $("#btn-serah").prop('disabled', false); + $('#marhunpilih').val(formatter.format(totalmarhun.toFixed(2))); + } else { + $(':checkbox').each(function() { + let marhun = Number($(this).data("marhun")); + totalmarhun -= marhun; + this.checked = false; + }); + $('#marhunpilih').val(0); + $("#btn-serah").prop('disabled', true); + } + } + function checkallfunc(){ let totalmarhun = 0; diff --git a/resources/views/lelongan/index.blade.php b/resources/views/lelongan/index.blade.php index bf08b1b..302fb3b 100644 --- a/resources/views/lelongan/index.blade.php +++ b/resources/views/lelongan/index.blade.php @@ -54,11 +54,11 @@
- +
- +
@@ -239,17 +239,19 @@ let api = "{{ config('api.url') }}"; let nowakil = 0; let jenis = ''; + let mohon = ''; if($("input[name='radlelong']:checked").val() == 'baki') { jenis = 'T'; - let mohon = "Tuntut Baki Lelongan"; + mohon = "Tuntut Baki Lelongan"; }else{ jenis = 'B'; - let mohon = "Bayar Baki Lelongan"; + mohon = "Bayar Baki Lelongan"; } + let batchno = $('#batch').val();let teller = "{{ Auth::user()->name }}";let bakipjm = $('#pembiayaan').val().replace(/[^0-9.-]+/g,"");let bakiupah = $('#keuntungan').val(); let cajlain = 0.00; let cajlelong = $('#cajlelong').val(); let jumlah = $('#jumlah').val().replace(/[^0-9.-]+/g,"");let hargajual = $('#hargajual').val().replace(/[^0-9.-]+/g,""); diff --git a/resources/views/penebusan/index.blade.php b/resources/views/penebusan/index.blade.php index 120258e..380c22f 100644 --- a/resources/views/penebusan/index.blade.php +++ b/resources/views/penebusan/index.blade.php @@ -2234,6 +2234,7 @@ sumberat += parseFloat(value); }); + var jenistebus = $('#sltjenistebus').find(":selected").val(); var nopelanggan = "{{ $gadai['nopelanggan'] }}"; var jbg = "{{ $gadai['tempoh'] }}"; var kadarupah = "{{ $gadai['kadarupah'] }}"; @@ -2273,7 +2274,7 @@ //yang lama "norujukan" : norujukan, "nopelanggan" : nopelanggan, - "jenistebus" : jenisbayarantebus, + "jenistebus" : jenistebus, "jbg" : jbg, "kadarupah" : kadarupah, "nilai_marhun" : nilai_marhun_lama, diff --git a/resources/views/print/resittebussebelum.blade.php b/resources/views/print/resittebussebelum.blade.php index 71b07fb..886915b 100644 --- a/resources/views/print/resittebussebelum.blade.php +++ b/resources/views/print/resittebussebelum.blade.php @@ -414,7 +414,7 @@ hr.new5 { - + @@ -506,7 +506,7 @@ hr.new5 { - +
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['jbg'] }} No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}
No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['jbg'] }} No K/P : @php if($customers_info['kpbaru'] == '') echo $customers_info['kplama']; else echo $customers_info['kpbaru']; @endphp Tempoh Simpan: {{ $gadai['tempoh'] }}