diff --git a/app/common/service/RefundOrderService.php b/app/common/service/RefundOrderService.php index 59b57184e..59eb7c418 100644 --- a/app/common/service/RefundOrderService.php +++ b/app/common/service/RefundOrderService.php @@ -84,7 +84,8 @@ class RefundOrderService { $amount = '0.00'; 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; }