update jbg

This commit is contained in:
Afiq
2022-03-31 15:35:13 +08:00
parent 53ffaecded
commit 4ef73bd354
+12 -1
View File
@@ -3279,8 +3279,19 @@ class GadaiController extends Controller
}
$tempoh_gadai = ($year*12) + $month + $extensivemonth_gadai;
if($tempoh_gadai > 6.0){
if($gadai['t_matang'] <= $current){
$tempoh_gadai = 6.0;
}
}else if($tempoh_gadai > 12){
if($gadai['t_matang1'] <= $current){
$tempoh_gadai = 12.0;
}
}
$upah_semasa = $this->kiraupahTawarruqStokAudit($tempoh_gadai,$gadai['tempohbayar'],$gadai['kadarupah'],$gadai['bakipjm']);
$tempoh_update = $year + $month + $extensivemonth;
Gadai::on($cawangan_mysql['mysql'])->where('norujukan','=',$gadai['norujukan'])->update(array(
'jbg' => $tempoh_gadai,
'tempoh' => $tempoh_gadai,