wugg 2 năm trước cách đây
mục cha
commit
6f0b6209d2
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/admin/controller/Purchin.php

+ 2 - 2
app/admin/controller/Purchin.php

@@ -488,11 +488,11 @@ class Purchin extends BaseController
                           "addtime"=>date("Y-m-d H:i:s"),
                           "updatetime"=>date("Y-m-d H:i:s"),
                       ];
-                        $order = ["order_code"=>$good['good_type_code'],"status"=>1,"action_remark"=>'',
+                        $order = ["order_code"=>$good['spuCode'],"status"=>1,"action_remark"=>'',
                             "action_type"=>"create"];
 
                     }else{
-                        $order = ["order_code"=>$good['good_type_code'],"status"=>1,"action_remark"=>'', "action_type"=>"edit"];
+                        $order = ["order_code"=>$good['spuCode'],"status"=>1,"action_remark"=>'', "action_type"=>"edit"];
                     }
                     $good['usable_stock']+=$info['wsm_num'];
                     $good['wait_in_stock']-=$info['wsm_num'];