提交 09ccb437 编写于 作者: T Terry

库存扣除条件调整

上级 e7e311cd
......@@ -191,7 +191,7 @@ class Stock extends Service
$productFlatQty = ProductFlatQty::find()->where([
'product_id' => $product_id
])->one();
if(!$productFlatQty['qty'] || $productFlatQty['qty'] < 0){
if($productFlatQty['qty'] < 0){
Yii::$service->helper->errors->add('product: [ '.$product_name.' ] is stock out ');
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册