disabled cawangan v2

This commit is contained in:
Hafifie PKB
2025-11-15 23:26:11 +08:00
parent ec84bc0c82
commit 880e8b3928
+10 -1
View File
@@ -272,7 +272,15 @@ class PembiayaanService
return in_array($x->norujukan, $norujukanExcludeList);
};
return array_map(function ($x) use ($isNorujukanPaymentRecentlyAttempted, $isNorujukanAkanDilelong, $isNorujukanIsInFasa2, $isCawanganNotPermitUjrahPayment, $checkExcludePaymentList) {
$isCawanganVersion2 = function ($x){
if($x->tag_syarikat == 1 && $x->kodcaw != 'KB1'){
return true;
}
return false;
};
return array_map(function ($x) use ($isNorujukanPaymentRecentlyAttempted, $isNorujukanAkanDilelong, $isNorujukanIsInFasa2, $isCawanganNotPermitUjrahPayment, $checkExcludePaymentList,$isCawanganVersion2) {
$x->disabled_payment = false;
@@ -282,6 +290,7 @@ class PembiayaanService
|| $isNorujukanPaymentRecentlyAttempted($x)
|| $isCawanganNotPermitUjrahPayment($x)
|| $checkExcludePaymentList($x)
|| $isCawanganVersion2($x)
) {
$x->disabled_payment = true;
}