Fix export lelong
This commit is contained in:
@@ -995,6 +995,11 @@ class LelongController extends Controller
|
||||
->first();
|
||||
|
||||
foreach ($request->lelongbid as $index) {
|
||||
|
||||
$update_gadai = Gadai::on($cawangan['mysql'])->where('norujukan','=',$index['norujukan'])->update(array(
|
||||
'sttebus' => "L"
|
||||
));
|
||||
|
||||
$lelong_to_be_inserted = new Lelong();
|
||||
$lelong_to_be_inserted->batchno = $newBatchNo;
|
||||
$lelong_to_be_inserted->sirilel = $lelong->sirilel + 1;
|
||||
@@ -1045,8 +1050,6 @@ class LelongController extends Controller
|
||||
|
||||
$lelmarhun_arr[] = $lelmarhun_to_be_inserted->attributesToArray();
|
||||
|
||||
$gadai = Gadai::on($cawangan['mysql'])->where('norujukan', $data['norujukan'])->get();
|
||||
dd($gadai);
|
||||
}
|
||||
|
||||
LelMarhun::on($cawangan['mysql'])->insert($lelmarhun_arr);
|
||||
|
||||
Reference in New Issue
Block a user