diff --git a/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingRefundLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingRefundLogic.php index 6148291c..2e8a34b2 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingRefundLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingRefundLogic.php @@ -120,7 +120,9 @@ class CreateBookingRefundLogic extends AbstractControllerLogic $bookingAmountAfterRefunded = $booking->fix_amount - $refundInPending - $request->input('amount'); - $isFullyRefund = ($refund + $request->input('amount')) == $transaction->original_amount; + $refundAmount = round($refund + $request->input('amount'), 2); + $originalAmount = round((float) $transaction->original_amount, 2); + $isFullyRefund = $refundAmount == $originalAmount; $voucherCode = null; $redemptionId = null;