修改退款的错误
This commit is contained in:
parent
26b26768c6
commit
33e4dd43f2
@ -84,7 +84,8 @@ class RefundOrderService
|
|||||||
{
|
{
|
||||||
$amount = '0.00';
|
$amount = '0.00';
|
||||||
foreach ($orderCartProducts as $orderCartProduct) {
|
foreach ($orderCartProducts as $orderCartProduct) {
|
||||||
$amount = bcadd($amount, $orderCartProduct['total_price'], 2);
|
$totalAmount = bcsub($orderCartProduct['total_price'], $orderCartProduct['refund_amount'], 2);
|
||||||
|
$amount = bcadd($amount, $totalAmount, 2);
|
||||||
}
|
}
|
||||||
return $amount;
|
return $amount;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user