mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix wallet insufficient credit
This commit is contained in:
@@ -121,7 +121,7 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
|
||||
/** @var Wallet $wallet */
|
||||
$wallet = $booking->company->wallets()->first();
|
||||
|
||||
if($wallet->amount < $amount){
|
||||
if($wallet->amount < round($amount, 2)){
|
||||
throw new MalformedRequestException('Insufficient wallet balance. Please Top up your wallet.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user