Merged in feature/customerlelong-v2 (pull request #370)
fix certain for sttebus = 'L' only
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user