Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
7e8f5aacf4
@ -159,6 +159,11 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
||||
throw new BusinessException('请勿重复入库');
|
||||
}
|
||||
$offer_list = PurchaseProductOffer::where(['order_id' => $params['bhoid'], 'is_storage' => 0])->select();
|
||||
foreach ($offer_list as $k => $v) {
|
||||
if($v['buyer_nums']<=0){
|
||||
throw new BusinessException('采购数量不能为0');
|
||||
}
|
||||
}
|
||||
$total_price= PurchaseProductOffer::where(['order_id' => $params['bhoid']])->sum('total_price');
|
||||
$completed_amount= PurchaseProductOffer::where(['order_id' => $params['bhoid'],'pay_type'=>1])->sum('total_price');
|
||||
$outstanding_amount= PurchaseProductOffer::where(['order_id' => $params['bhoid'],'pay_type'=>2])->sum('total_price');
|
||||
|
Loading…
x
Reference in New Issue
Block a user