修改订单退款金额
This commit is contained in:
parent
8d65a3566a
commit
6dec5a1879
@ -1245,9 +1245,9 @@ class StoreRefundOrderRepository extends BaseRepository
|
|||||||
$_refundRate = bcmul($commission_rate, bcsub($item['data']['refund_price'], $extension, 2), 2);
|
$_refundRate = bcmul($commission_rate, bcsub($item['data']['refund_price'], $extension, 2), 2);
|
||||||
$refundRate = bcadd($refundRate, $_refundRate, 2);
|
$refundRate = bcadd($refundRate, $_refundRate, 2);
|
||||||
}
|
}
|
||||||
$refundPriceAll = bcadd($refundPriceAll, $refundPrice, 2);
|
|
||||||
$margin = FinancialRecord::getInstance()->where('mer_id', $res->mer_id)->where('order_sn', $item['sn'])->where('financial_type', 'auto_margin')->value('number');
|
$margin = FinancialRecord::getInstance()->where('mer_id', $res->mer_id)->where('order_sn', $item['sn'])->where('financial_type', 'auto_margin')->value('number');
|
||||||
$refundPrice = bcsub($refundPrice, $margin, 2);
|
$refundPrice = bcsub($refundPrice, $margin, 2);
|
||||||
|
$refundPriceAll = bcadd($refundPriceAll, $refundPrice, 2);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$orderType = (isset($item['presell']) && $item['presell']) ? 'presell' : 'order';
|
$orderType = (isset($item['presell']) && $item['presell']) ? 'presell' : 'order';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user