update error and join customer table

This commit is contained in:
Amirah22
2022-06-19 14:32:14 +08:00
parent 1336db1a84
commit 2c5b037913
2 changed files with 4 additions and 7 deletions
+4 -6
View File
@@ -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();