update error and join customer table
This commit is contained in:
@@ -106,11 +106,7 @@ class NotisController extends Controller
|
||||
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
|
||||
->where('cawangan.caw_code','=',$user->kodcaw)
|
||||
->where('cawangan_lelong.lelong_id', $lelong_id)
|
||||
->get();
|
||||
|
||||
|
||||
|
||||
$lelong = Lelong::where('id', $lelongid)->get();
|
||||
->get();
|
||||
|
||||
|
||||
|
||||
@@ -131,7 +127,9 @@ class NotisController extends Controller
|
||||
$lelong_id = $request->lelong_id;
|
||||
|
||||
$payment = LelongBid::join('gadai','lelongbid.norujukan','=','gadai.norujukan')
|
||||
->join('customer','gadai.nokp','=','customer.kpbaru')
|
||||
->join('customer', function ($join) {
|
||||
$join->on('gadai.nokp', '=', 'customer.kpbaru')->orOn('gadai.nokp', '=', 'customer.kplama');
|
||||
})
|
||||
->where('gadai.kodcaw','=',$user->kodcaw)
|
||||
->where('lelongbid.lelong_id', $lelong_id)
|
||||
->get()->toArray();
|
||||
|
||||
Reference in New Issue
Block a user