From cc2c9a7b4087632507c3c261b376b5588884c705 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 17 Oct 2022 15:59:12 +0800 Subject: [PATCH] fix block 12 bulan --- resources/views/includes/home.blade.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/resources/views/includes/home.blade.php b/resources/views/includes/home.blade.php index 4c27304..c0425a2 100644 --- a/resources/views/includes/home.blade.php +++ b/resources/views/includes/home.blade.php @@ -697,13 +697,23 @@ var hargaemastable = $('#harga_emas').DataTable({ } }); + var tarikh_12bulan = DateDiff(new Date(lelong.t_matang1),today); + + var lelong_12bulanblock = false; + if(tarikh_12bulan.toFixed() <= 30) + { + lelong_12bulanblock = true; + } + var should_block = ''; - if(had_paid == true || lelongblock == 'disabled') + if(had_paid == true || lelongblock == 'disabled' || lelong_12bulanblock == true) { should_block = 'disabled'; } + + let marh = JSON.stringify(marhun[0]); selepastawarruqtable.row.add([