From cd4739a1d13fe3a94406e6dca992ffa975fba43e Mon Sep 17 00:00:00 2001 From: omair saleh Date: Wed, 9 Mar 2022 16:22:03 +0800 Subject: [PATCH] fix wallet balance --- .../Bookings/ControllersLogic/CreateBookingPaymentLogic.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php index 87e6866f..332c9104 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php @@ -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.'); }