|
@@ -344,6 +344,8 @@ class FinancialManager extends Base{
|
|
|
$order = QrdInfo::where("sequenceNo",$data['orderCode'])->findOrEmpty();
|
|
|
if($order->isEmpty())$error[] = ['code'=>$data['orderCode'],'msg'=>'订单未找到数据'];
|
|
|
}
|
|
|
+ $good = Good::where("spuCode",$data['goodNo'])->findOrEmpty();
|
|
|
+ if($good->isEmpty()) $error[] = ['code'=>$data['goodNo'],'msg'=>'采销商品未找到数据'];
|
|
|
if(!$order->isEmpty() && $order->cxCode!=$data['cxCode']) $error[] = ['code'=>$data['orderCode'],'msg'=>'订单主单号不一致'];
|
|
|
return $error;
|
|
|
}
|