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

fix specific norujukan
This commit is contained in:
Muhd hafifie
2025-10-05 02:00:21 +00:00
@@ -776,7 +776,7 @@ class TransactionOnlineController extends Controller
foreach ($cawangan_all as $index => $cawangan) {
$gadai = Gadai::on($cawangan['mysql'])
->where([['sttebus', '=', ''], ['nokp', '=', $request->ic]])
->where('nokp', '=', $request->ic)
->orderBy('t_gadai', 'desc')
->get()->toArray();
@@ -787,6 +787,7 @@ class TransactionOnlineController extends Controller
$query->whereNull('trkhtuntut')
->orWhere('trkhtuntut', '=', '');
})
->where('norujukan', '=' ,$gad['norujukan'])
->where('baki', '>=', 0)
->sum('baki');
@@ -795,6 +796,7 @@ class TransactionOnlineController extends Controller
$query->whereNull('trkhtuntut')
->orWhere('trkhtuntut', '=', '');
})
->where('norujukan', '=' ,$gad['norujukan'])
->where('baki','<',0)
->sum('baki');
}