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) {
|
foreach ($cawangan_all as $index => $cawangan) {
|
||||||
$gadai = Gadai::on($cawangan['mysql'])
|
$gadai = Gadai::on($cawangan['mysql'])
|
||||||
->where('nokp', '=', $request->ic)
|
->where('nokp', '=', $request->ic)
|
||||||
|
->where('sttebus','=','L')
|
||||||
->orderBy('t_gadai', 'desc')
|
->orderBy('t_gadai', 'desc')
|
||||||
->get()->toArray();
|
->get()->toArray();
|
||||||
|
|
||||||
@@ -799,10 +800,10 @@ class TransactionOnlineController extends Controller
|
|||||||
->where('norujukan', '=' ,$gad['norujukan'])
|
->where('norujukan', '=' ,$gad['norujukan'])
|
||||||
->where('baki','<',0)
|
->where('baki','<',0)
|
||||||
->sum('baki');
|
->sum('baki');
|
||||||
}
|
|
||||||
|
|
||||||
$totalBakiLelong += $bakilelong;
|
$totalBakiLelong += $bakilelong;
|
||||||
$totalRugiLelong += $rugilelong;
|
$totalRugiLelong += $rugilelong;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user