|
|
@@ -1319,11 +1319,11 @@ class ProductClass extends BaseClass
|
|
|
$changeParams = ['staffId' => $staffId, 'staffName' => $staffName];
|
|
|
|
|
|
if ($price != $product->price) {
|
|
|
- //花店价有变化
|
|
|
+ //批发价有变化
|
|
|
self::changeSinglePrice($shop, $ptItemId, $price, $currentSkPrice, $changeParams);
|
|
|
unset($upData['price']);
|
|
|
} else {
|
|
|
- //花店价没有变化,但散客价比花店价贵多少有修改时,也要改价
|
|
|
+ //批发价没有变化,但散客价比批发价贵多少有修改时,也要改价
|
|
|
if (isset($data['skMore']) && is_numeric($data['skMore']) && $data['skMore'] != $product->skMore) {
|
|
|
self::changeSinglePrice($shop, $ptItemId, $price, $currentSkPrice, $changeParams);
|
|
|
unset($upData['price']);
|
|
|
@@ -1405,11 +1405,11 @@ class ProductClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
if ($price != $chainProduct->price) {
|
|
|
- //花店价有变化
|
|
|
+ //批发价有变化
|
|
|
self::changeSinglePrice($chainShop, $ptItemId, $price, $currentSkPrice, $changeParams2);
|
|
|
unset($params['price']);
|
|
|
} else {
|
|
|
- //花店价没有变化,但散客价比花店价贵多少有修改时,也要改价
|
|
|
+ //批发价没有变化,但散客价比批发价贵多少有修改时,也要改价
|
|
|
if (isset($data['skMore']) && is_numeric($data['skMore']) && $data['skMore'] != $chainProduct->skMore) {
|
|
|
self::changeSinglePrice($chainShop, $ptItemId, $price, $currentSkPrice, $changeParams2);
|
|
|
unset($params['price']);
|
|
|
@@ -1680,10 +1680,10 @@ class ProductClass extends BaseClass
|
|
|
$ptItemInfo = PtItemClass::getById($ptItemId, true);
|
|
|
$data['variety'] = $ptItemInfo->variety ?? 0;
|
|
|
|
|
|
- //花店价比进货价贵多少 2021-12-07 lqh 如果前端有传取前端的,没有则取pt
|
|
|
+ //批发价比进货价贵多少 2021-12-07 lqh 如果前端有传取前端的,没有则取pt
|
|
|
$addPrice = $data['addPrice'] ?? $ptItemInfo->addPrice;
|
|
|
$data['addPrice'] = $addPrice;
|
|
|
- //花店价
|
|
|
+ //批发价
|
|
|
$price = $data['price'] ?? 0;
|
|
|
if (empty($price) || $price <= 0) {
|
|
|
util::fail('请填写价格');
|