fix portal for arrahnbid api
This commit is contained in:
@@ -292,10 +292,17 @@ class TransactionOnlineController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$akanlelong = Gadai::on($cawangan['mysql'])
|
||||
->where([['sttebus','=', ''],['taglel',1],['nokp','=',$request->ic]])
|
||||
// ->rightJoin('lelong', 'gadai.norujukan', '=', 'lelong.norujukan')
|
||||
->get()->toArray();
|
||||
if($cawangan['kodcaw'] == 'KB2' || $cawangan['kodcaw'] == 'WCY' || $cawangan['kodcaw'] == 'WB'){
|
||||
$akanlelong = Gadai::on($cawangan['mysql'])
|
||||
->where([['sttebus','=', ''],['taglel',1],['nokp','=',$request->ic]])
|
||||
->get()->toArray();
|
||||
}
|
||||
else{
|
||||
$akanlelong = Gadai::on($cawangan['mysql'])
|
||||
->where([['sttebus','=', ''],['taglel',1],['nokp','=',$request->ic]])
|
||||
->rightJoin('lelong', 'gadai.norujukan', '=', 'lelong.norujukan')
|
||||
->get()->toArray();
|
||||
}
|
||||
|
||||
if(sizeof($akanlelong) != 0){
|
||||
foreach($akanlelong as $lelong)
|
||||
|
||||
Reference in New Issue
Block a user