|
|
@@ -547,7 +547,7 @@ class PurchaseOrderClass extends BaseClass
|
|
|
$ptItemId = $cgItem['itemId'] ?? 0;
|
|
|
$unitCost = $cgItem['cost'] ?? 0;
|
|
|
$presell = $cgItem['presell'] ?? 0;
|
|
|
- $bigPrice = $cgItem['bigPrice'] ?? 0;
|
|
|
+ $currentCost = $cgItem['cost'] ?? 0;
|
|
|
|
|
|
$product = ProductClass::getLockById($productId);
|
|
|
if (empty($product)) {
|
|
|
@@ -557,7 +557,7 @@ class PurchaseOrderClass extends BaseClass
|
|
|
if ($presell == 0) {
|
|
|
|
|
|
//加库存和流水记录
|
|
|
- $stockInfo = ProductClass::addStockByItemNum($productId, $currentNum, ['cost' => $bigPrice]);
|
|
|
+ $stockInfo = ProductClass::addStockByItemNum($productId, $currentNum, ['cost' => $currentCost]);
|
|
|
$record = [];
|
|
|
$record['sjId'] = $sjId;
|
|
|
$record['shopId'] = $shopId;
|