cqpCow 1 năm trước cách đây
mục cha
commit
5c790afbb9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Service/InventoryService.php

+ 2 - 2
app/Service/InventoryService.php

@@ -249,8 +249,8 @@ class InventoryService extends Service
 
         try {
             DB::beginTransaction();
-            foreach ($data as $value){
-                InventoryOrderAsset::whereIn('id',$value['id'])
+            foreach ($data['data'] as $value){
+                InventoryOrderAsset::where('id',$value['id'])
                     ->where('del_time',0)
                     ->update([
                         'remark' => $value['remark'],