From 4ab664db228e0af9fec627ea6eb79c14fb677780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna-Sara=20S=C3=A9lea?= Date: Thu, 15 Jan 2026 18:42:39 +0100 Subject: [PATCH] Fix with register deposit --- app/Http/Controllers/CustomerGroupController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CustomerGroupController.php b/app/Http/Controllers/CustomerGroupController.php index c09654e..11e9612 100644 --- a/app/Http/Controllers/CustomerGroupController.php +++ b/app/Http/Controllers/CustomerGroupController.php @@ -62,8 +62,9 @@ class CustomerGroupController extends Controller $customer = Customer::findOrFail($customerItem); $customer->customer_group_id = $customerGroup->id; $customer->is_in_group = 1; - $groupAmount += $customer->deposit; + $groupAmount += $customer->amount_left; $customer->deposit = 0; + $customer->amount_left = 0; $customer->save(); }