|
@@ -137,8 +137,8 @@ class ReorderChild extends Base
|
|
|
"before_status" => 0,
|
|
|
'holder_id' => $this->uid
|
|
|
]);
|
|
|
-
|
|
|
- //维护发货工单
|
|
|
+ if(isset($value['outChildCode'])){
|
|
|
+ //维护发货工单
|
|
|
$orderOutChild[$value['outChildCode']]['num'] -= $value['return_num'];
|
|
|
if ($orderOutChild[$value['outChildCode']]['num'] <= 0) {
|
|
|
$orderOutChild[$value['outChildCode']]['status'] = 4;
|
|
@@ -153,6 +153,8 @@ class ReorderChild extends Base
|
|
|
'status' => $orderOutChild[$value['outChildCode']]['status'],
|
|
|
'is_del' => $orderOutChild[$value['outChildCode']]['is_del'],
|
|
|
]);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if ($param['outCode'] != '') {
|
|
|
//维护发货单
|