fix wallet insufficient credit

This commit is contained in:
omair saleh
2022-03-04 12:31:38 +08:00
parent caecd431b0
commit 14200bf52e
@@ -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.');
}