|
|
@@ -191,7 +191,14 @@ class PurchaseOrderClass extends BaseClass
|
|
|
//2021.4.6修改product 成本价
|
|
|
//2021.6.21 成本价改为四舍五入取整数
|
|
|
$avgCost = round($avgCost);
|
|
|
- ProductClass::changeCost($productId, $avgCost);
|
|
|
+
|
|
|
+ //ProductClass::changeCost($productId, $avgCost);
|
|
|
+ //采购之后全部变成自动调价
|
|
|
+ $product = ProductClass::getLockById($productId);
|
|
|
+ $product->cost = $avgCost;
|
|
|
+ $product->priceLabel = ProductClass::PRICE_LABEL_AUTO;
|
|
|
+ $product->save();
|
|
|
+
|
|
|
//触发自动调价 2021.4.26 linqh
|
|
|
ProductClass::autoPriceById($productId);
|
|
|
}
|