Merged in feature/customerlelong-v2 (pull request #370)

fix certain for sttebus = 'L' only
This commit is contained in:
Muhd hafifie
2025-11-15 15:31:01 +00:00
@@ -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;
}
}
}