|
@@ -1125,7 +1125,7 @@ class After extends Base
|
|
|
return error_show(1005,'采购单数据更新失败');
|
|
|
}
|
|
|
}
|
|
|
- else{
|
|
|
+
|
|
|
$sabebn =Db::name("sale_info")->where(["orderCode"=>$info['orderCode']])->select()->toArray();
|
|
|
if(!empty($sabebn)){
|
|
|
$total_num= $info['error_num'];
|
|
@@ -1140,11 +1140,6 @@ class After extends Base
|
|
|
$tempnum = $total_num;
|
|
|
$total_num=0;
|
|
|
$ve['num']-=$total_num;
|
|
|
- }
|
|
|
- $up=Db::name("sale_info")->save($ve);
|
|
|
- if($up==false){
|
|
|
- Db::rollback();
|
|
|
- return error_show(1005, '可售商品Bn库存数入库失败');
|
|
|
}
|
|
|
$bnin=GoodStockInfo::ReturnBn($thNo,$ve['id'],$tempnum);
|
|
|
if($bnin==false){
|
|
@@ -1153,7 +1148,6 @@ class After extends Base
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
|
|
if($info['error_num']>=$out['send_num']){
|