mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 13:33:57 +00:00
fix fully refund bug - the price is not equal
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user