mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
fix wallet balance
This commit is contained in:
@@ -121,7 +121,7 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
|
||||
/** @var Wallet $wallet */
|
||||
$wallet = $booking->company->wallets()->first();
|
||||
|
||||
if($wallet->amount < round($amount, 2)){
|
||||
if(round($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