fix update jbg

This commit is contained in:
Afiq
2022-04-03 12:26:47 +08:00
parent aa2779c493
commit f6d2703f77
+4 -5
View File
@@ -3283,13 +3283,12 @@ class GadaiController extends Controller
}
$tempoh_gadai = ($year*12) + $month + $extensivemonth_gadai;
if($tempoh_gadai > 6.0){
if($gadai['t_matang'] >= $current){
if($tempoh_gadai >= 6.0){
if($gadai['t_matang'] >= $current->toDateString()){
$tempoh_gadai = 6.0;
}
}else if($tempoh_gadai > 12){
if($gadai['t_matang1'] >= $current){
}else if($tempoh_gadai >= 12){
if($gadai['t_matang1'] >= $current->toDateString()){
$tempoh_gadai = 12.0;
}
}