From 533f5facc12c0c7219c35e1cc6804d45b2c3a510 Mon Sep 17 00:00:00 2001 From: mohammad sedighi Date: Fri, 26 Jun 2026 14:27:50 +0330 Subject: [PATCH] wallet fix --- app/Http/Controllers/Site/RequestsController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Site/RequestsController.php b/app/Http/Controllers/Site/RequestsController.php index 413437e..a86dade 100644 --- a/app/Http/Controllers/Site/RequestsController.php +++ b/app/Http/Controllers/Site/RequestsController.php @@ -68,7 +68,11 @@ class RequestsController extends Controller { $customer_id = Customer::where('mobile', $request->mobile)->first()?->id; if($customer_id && $customer_id !== null){ - $wallet = Wallet::select(['owner','gold','cash'])->where('owner',$customer_id)->first(); + $wallet = Wallet::select(['owner','gold','cash']) + ->where('owner', $customer_id) + ->whereNull('fund_id') + ->whereNull('product_id') + ->first(); }else{ throw new UnprocessableEntityHttpException('کاربری با این شماره موبایل یافت نشد.'); }