fix wallet balance

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