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