修改采购商品入库
This commit is contained in:
parent
17cc47ffc9
commit
c44b51e33f
@ -413,9 +413,7 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
|||||||
if (!$offerResult) {
|
if (!$offerResult) {
|
||||||
throw new BusinessException('入库失败,采购信息更新出错');
|
throw new BusinessException('入库失败,采购信息更新出错');
|
||||||
}
|
}
|
||||||
$putInCount = PurchaseProductOffer::where('order_id', $purchaseProductOffer['order_id'])->where('is_storage', 1)->count();
|
if ($beforehandOrder['is_warehousing'] == 0) {
|
||||||
$offerCount = PurchaseProductOffer::where('order_id', $purchaseProductOffer['order_id'])->count();
|
|
||||||
if ($putInCount == $offerCount) {
|
|
||||||
$attrs = ['warehousing_id' => $warehouseOrder['id'], 'is_warehousing' => 1];
|
$attrs = ['warehousing_id' => $warehouseOrder['id'], 'is_warehousing' => 1];
|
||||||
if ($beforehandOrder['order_type'] == 7) {
|
if ($beforehandOrder['order_type'] == 7) {
|
||||||
$attrs['is_buying'] = 1;
|
$attrs['is_buying'] = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user