This commit is contained in:
hafifierahman
2022-05-12 11:35:48 +08:00
parent f2a1e2201b
commit 2669d3aa8e
@@ -279,7 +279,7 @@ class TransactionOnlineController extends Controller
foreach($cawangan_all as $index=>$cawangan){
$gadai = Gadai::on($cawangan['mysql'])
->where([['sttebus','=',''],['nokp','=',$request->ic]])
->where([['sttebus','=',''],['taglel',0],['nokp','=',$request->ic]])
->orderBy('t_gadai','desc')
->get()->toArray();
if(sizeof($gadai) != 0){
@@ -293,7 +293,7 @@ class TransactionOnlineController extends Controller
}
$akanlelong = Gadai::on($cawangan['mysql'])
->where([['sttebus','=', ''],['nokp','=',$request->ic],['hargajual','=', 0]])
->where([['sttebus','=', ''],['taglel',1],['nokp','=',$request->ic],['hargajual','=', 0]])
->rightJoin('lelong', 'gadai.norujukan', '=', 'lelong.norujukan')
->get()->toArray();