From b054948efc83034f29f3612f66a1d62445044da9 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Tue, 18 Oct 2022 10:17:09 +0800 Subject: [PATCH] pembiayaan6bulan add 12month reserve --- resources/views/includes/home.blade.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/views/includes/home.blade.php b/resources/views/includes/home.blade.php index c0425a2..58fd26e 100644 --- a/resources/views/includes/home.blade.php +++ b/resources/views/includes/home.blade.php @@ -573,9 +573,18 @@ var hargaemastable = $('#harga_emas').DataTable({ } }); + + var tarikh_12bulan = DateDiff(new Date(ps.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'; }