fix calculate jbg

This commit is contained in:
Afiq
2022-04-12 11:41:58 +08:00
parent 8bfd48de37
commit a61b62edc3
+5 -5
View File
@@ -3286,14 +3286,14 @@ class GadaiController extends Controller
if($gadai['t_gadai'] == $current->toDateString()){
$tempoh_gadai = 0.5;
}
if($tempoh_gadai >= 6.0){
if($gadai['t_matang'] >= $current->toDateString()){
$tempoh_gadai = 6.0;
}
}else if($tempoh_gadai >= 12){
if($tempoh_gadai >= 12.0){
if($gadai['t_matang1'] >= $current->toDateString()){
$tempoh_gadai = 12.0;
}
}else if($tempoh_gadai >= 6.0){
if($gadai['t_matang'] >= $current->toDateString()){
$tempoh_gadai = 6.0;
}
}
$upah_semasa = $this->kiraupahTawarruqStokAudit($tempoh_gadai,$gadai['tempohbayar'],$gadai['kadarupah'],$gadai['bakipjm']);