|
@@ -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'];
|