v2.5
Update response in "delete client"
This commit is contained in:
@@ -90,6 +90,7 @@ class POSTClient extends HRCCommand implements HRCCommandInterface {
|
|||||||
|
|
||||||
if ($input['task'] == 'delete') {
|
if ($input['task'] == 'delete') {
|
||||||
$client = Client::find($input['id']);
|
$client = Client::find($input['id']);
|
||||||
|
$clientGroup = ClientsGroup::where('code', $client->group_id)->first();
|
||||||
$clientPhone = ClientsPhone::where('client_guid', $client->user_code)->first();
|
$clientPhone = ClientsPhone::where('client_guid', $client->user_code)->first();
|
||||||
$clientPhone = ClientsPhone::find($clientPhone['id']);
|
$clientPhone = ClientsPhone::find($clientPhone['id']);
|
||||||
$clientEmail = ClientsEmail::where('client_guid', $client->user_code)->first();
|
$clientEmail = ClientsEmail::where('client_guid', $client->user_code)->first();
|
||||||
@@ -117,6 +118,7 @@ class POSTClient extends HRCCommand implements HRCCommandInterface {
|
|||||||
return [
|
return [
|
||||||
'status' => 'success',
|
'status' => 'success',
|
||||||
'message' => 'Клиент удален',
|
'message' => 'Клиент удален',
|
||||||
|
'currentGroup' => $clientGroup['id'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user