|
|
@@ -212,6 +212,11 @@ class CgRefundService extends BaseService
|
|
|
$currentPrice = bcmul($num,$unitPrice,2);
|
|
|
$originPrice = bcadd($originPrice,$currentPrice,2);
|
|
|
|
|
|
+ $itemNum = $num;
|
|
|
+ if ($unitType == dict::getDict('unitType', 'small')) {
|
|
|
+ $itemNum = bcdiv($num, $ratio, 2);
|
|
|
+ }
|
|
|
+
|
|
|
$refundData = [];
|
|
|
$refundData['orderSn'] = $refundOrderSn;
|
|
|
$refundData['itemId'] = $ptItemId;
|
|
|
@@ -224,6 +229,7 @@ class CgRefundService extends BaseService
|
|
|
$refundData['shopId'] = $shopId;
|
|
|
$refundData['sjId'] = $sjId;
|
|
|
$refundData['xhNum'] = $num;
|
|
|
+ $refundData['itemNum'] = $itemNum;
|
|
|
$refundData['xhUnitName'] = $unitName;
|
|
|
$refundData['xhUnitType'] = $unitType;
|
|
|
$refundData['xhUnitPrice'] = $unitPrice;
|