fix wallet balance

This commit is contained in:
omair saleh
2022-03-09 16:23:06 +08:00
parent cd4739a1d1
commit 545b191735
@@ -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.');
}