fix ansuran tak boleh bayar

This commit is contained in:
Hafifie PKB
2023-12-11 11:12:27 +08:00
parent fb8b82c897
commit 60d04ef889
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -176,7 +176,7 @@ class GadaiV2
return $upahsemasa_raw;
}
public function kiraupahRebet($kodcaw,$norujukan){
public function kiraupahRebet($norujukan){
$onepercentservices = new Calculation();
$cawangan = Cawangan::on('mysql7')
@@ -209,8 +209,8 @@ class GadaiV2
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$gadai = Gadai::on($cawangan['mysql'])->where('norujukan','=',$norujukan)->first();
$upahsemasa = $this->kiraupahOnePercent($kodcaw,$norujukan);
$upahrebet = $this->kiraUpahRebet($kodcaw,$norujukan);
$upahsemasa = $this->kiraupahOnePercent($norujukan);
$upahrebet = $this->kiraUpahRebet($norujukan);
$total_bayaran_prev = Transaction::on('mysql7')->where([['norujukan','=',$norujukan],['trans_type','=','A']])->sum('duit_masuk');