|
|
@@ -8,6 +8,7 @@ use biz\stat\classes\StatOutClass;
|
|
|
use biz\stat\classes\StatStockInClass;
|
|
|
use biz\stat\classes\StatStockOutClass;
|
|
|
use bizGhs\item\classes\CostChangeClass;
|
|
|
+use bizGhs\item\classes\PriceChangeClass;
|
|
|
use bizGhs\order\models\StockOutOrderItem;
|
|
|
use bizGhs\order\traits\OrderTrait;
|
|
|
use bizGhs\product\classes\ProductClass;
|
|
|
@@ -209,6 +210,25 @@ class StockInOrderClass extends BaseClass
|
|
|
'event' => $event,
|
|
|
];
|
|
|
CostChangeClass::addData($changeData);
|
|
|
+ if ($currentHdPrice > 0) {
|
|
|
+ $changeData = [
|
|
|
+ 'ptStyle' => 2,
|
|
|
+ 'sjId' => $currentInfo->sjId ?? 0,
|
|
|
+ 'mainId' => $mainId,
|
|
|
+ 'itemId' => $currentInfo->id ?? 0,
|
|
|
+ 'ptItemId' => $currentInfo->itemId ?? 0,
|
|
|
+ 'price' => $currentHdPrice,
|
|
|
+ 'skPrice' => $currentSkPrice,
|
|
|
+ 'staffId' => $staffId,
|
|
|
+ 'staffName' => $staffName,
|
|
|
+ 'name' => $currentInfo->name ?? '',
|
|
|
+ 'cover' => $currentInfo->cover ?? '',
|
|
|
+ 'event' => $event,
|
|
|
+ 'targetId' => $orderId,
|
|
|
+ 'type' => 2,
|
|
|
+ ];
|
|
|
+ PriceChangeClass::addData($changeData);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
$stockInfo = ProductClass::addStockByItemNum($currentItemId, $v['itemNum']);
|