|
|
|
|
@ -610,7 +610,6 @@ class OrdersController extends CommonController
|
|
|
|
|
{
|
|
|
|
|
$ids = explode(",", $request->ids);
|
|
|
|
|
$order_items = (new OrderItems())->whereHas("order")->whereIn("id", $ids)->with("customer")->get();
|
|
|
|
|
dd($order_items);
|
|
|
|
|
if (!$order_items->count()) {
|
|
|
|
|
return response()->json([
|
|
|
|
|
"errorcode" => "105",
|
|
|
|
|
@ -681,6 +680,8 @@ class OrdersController extends CommonController
|
|
|
|
|
$order_item->update($update);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dd($update);
|
|
|
|
|
|
|
|
|
|
DB::commit();
|
|
|
|
|
return response()->json([
|
|
|
|
|
"updated_items" => count($order_items),
|
|
|
|
|
|