Merge pull request 'feat(purchase): 采购产品供应商价格设置' (#485) from dev into main
Reviewed-on: #485
This commit is contained in:
commit
5b893fb39a
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace app\admin\logic\beforehand_order_cart_info;
|
namespace app\admin\logic\beforehand_order_cart_info;
|
||||||
|
|
||||||
|
use app\admin\logic\purchase_product_offer\PurchaseProductOfferLogic;
|
||||||
use app\admin\logic\warehouse_product\WarehouseProductLogic;
|
use app\admin\logic\warehouse_product\WarehouseProductLogic;
|
||||||
use app\common\model\beforehand_order_cart_info\BeforehandOrderCartInfo;
|
use app\common\model\beforehand_order_cart_info\BeforehandOrderCartInfo;
|
||||||
use app\common\logic\BaseLogic;
|
use app\common\logic\BaseLogic;
|
||||||
@ -423,6 +424,11 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
|||||||
// throw new BusinessException('入库失败,预订单更新出错');
|
// throw new BusinessException('入库失败,预订单更新出错');
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
$purchaseProductOffer['purchase']=$purchaseProductOffer['price'];
|
||||||
|
$product = StoreProduct::where('id', $purchaseProductOffer['product_id'])->withTrashed()->field('id,store_name,top_cate_id,two_cate_id,cate_id')->find();
|
||||||
|
|
||||||
|
PurchaseProductOfferLogic::setProductGroupPrice($purchaseProductOffer, $product);
|
||||||
|
|
||||||
Db::commit();
|
Db::commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user