Fix export lelong

This commit is contained in:
Amir
2022-12-01 10:20:23 +08:00
parent 910c4afc75
commit fc4fd51281
+5 -2
View File
@@ -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);