fix certain for sttebus = 'L' only

This commit is contained in:
Hafifie PKB
2025-11-15 23:23:14 +08:00
parent b76f804d44
commit a1f3bc29f5
@@ -777,6 +777,7 @@ class TransactionOnlineController extends Controller
foreach ($cawangan_all as $index => $cawangan) {
$gadai = Gadai::on($cawangan['mysql'])
->where('nokp', '=', $request->ic)
->where('sttebus','=','L')
->orderBy('t_gadai', 'desc')
->get()->toArray();
@@ -799,10 +800,10 @@ class TransactionOnlineController extends Controller
->where('norujukan', '=' ,$gad['norujukan'])
->where('baki','<',0)
->sum('baki');
}
$totalBakiLelong += $bakilelong;
$totalRugiLelong += $rugilelong;
}
}
}