|
|
@@ -409,7 +409,7 @@ class ShopClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//零售采购退款
|
|
|
- public static function cgRefundAddBalance($shop, $refundPrice, $cgRefund)
|
|
|
+ public static function cgRefundAddBalance($shop, $refundPrice, $cgRefund, $ghs)
|
|
|
{
|
|
|
//客户余额增加
|
|
|
$currentBalance = bcadd($shop->balance, $refundPrice, 2);
|
|
|
@@ -422,6 +422,7 @@ class ShopClass extends BaseClass
|
|
|
$sjId = $shop->sjId;
|
|
|
$shopId = $shop->id;
|
|
|
$tx = dict::getDict('yeTx', 'canNot');
|
|
|
+ $ghsName = $ghs->name ?? '';
|
|
|
$change = [
|
|
|
'relateId' => $id,
|
|
|
'capitalType' => $currentType,
|
|
|
@@ -430,7 +431,7 @@ class ShopClass extends BaseClass
|
|
|
'txBalance' => $currentTxBalance,
|
|
|
'io' => 1,
|
|
|
'payWay' => 0,
|
|
|
- 'event' => "采购退款",
|
|
|
+ 'event' => "采购退款({$ghsName})",
|
|
|
'sjId' => $sjId,
|
|
|
'shopId' => $shopId,
|
|
|
'tx' => $tx,
|