mirror of
https://github.com/anna-sara/lan_kiosk
synced 2026-03-16 19:55:41 +01:00
Fix with register deposit
This commit is contained in:
parent
3fdea4581f
commit
4ab664db22
1 changed files with 2 additions and 1 deletions
|
|
@ -62,8 +62,9 @@ class CustomerGroupController extends Controller
|
||||||
$customer = Customer::findOrFail($customerItem);
|
$customer = Customer::findOrFail($customerItem);
|
||||||
$customer->customer_group_id = $customerGroup->id;
|
$customer->customer_group_id = $customerGroup->id;
|
||||||
$customer->is_in_group = 1;
|
$customer->is_in_group = 1;
|
||||||
$groupAmount += $customer->deposit;
|
$groupAmount += $customer->amount_left;
|
||||||
$customer->deposit = 0;
|
$customer->deposit = 0;
|
||||||
|
$customer->amount_left = 0;
|
||||||
$customer->save();
|
$customer->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue