update jbg
This commit is contained in:
@@ -3279,8 +3279,19 @@ class GadaiController extends Controller
|
|||||||
}
|
}
|
||||||
$tempoh_gadai = ($year*12) + $month + $extensivemonth_gadai;
|
$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']);
|
$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(
|
Gadai::on($cawangan_mysql['mysql'])->where('norujukan','=',$gadai['norujukan'])->update(array(
|
||||||
'jbg' => $tempoh_gadai,
|
'jbg' => $tempoh_gadai,
|
||||||
'tempoh' => $tempoh_gadai,
|
'tempoh' => $tempoh_gadai,
|
||||||
|
|||||||
Reference in New Issue
Block a user