edit ,add customer type
This commit is contained in:
parent
aae5b58d57
commit
f44d800400
@ -309,7 +309,8 @@ switch ($action) {
|
|||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if ($c) $c->delete();
|
if ($c)
|
||||||
|
$c->delete();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
}
|
}
|
||||||
@ -328,6 +329,7 @@ switch ($action) {
|
|||||||
$address = _post('address');
|
$address = _post('address');
|
||||||
$phonenumber = _post('phonenumber');
|
$phonenumber = _post('phonenumber');
|
||||||
$service_type = _post('service_type');
|
$service_type = _post('service_type');
|
||||||
|
$account_type = _post('account_type');
|
||||||
//post Customers Attributes
|
//post Customers Attributes
|
||||||
$custom_field_names = (array) $_POST['custom_field_name'];
|
$custom_field_names = (array) $_POST['custom_field_name'];
|
||||||
$custom_field_values = (array) $_POST['custom_field_value'];
|
$custom_field_values = (array) $_POST['custom_field_value'];
|
||||||
@ -355,6 +357,7 @@ switch ($action) {
|
|||||||
$d->password = $password;
|
$d->password = $password;
|
||||||
$d->pppoe_password = $pppoe_password;
|
$d->pppoe_password = $pppoe_password;
|
||||||
$d->email = $email;
|
$d->email = $email;
|
||||||
|
$d->account_type = $account_type;
|
||||||
$d->fullname = $fullname;
|
$d->fullname = $fullname;
|
||||||
$d->address = $address;
|
$d->address = $address;
|
||||||
$d->created_by = $admin['id'];
|
$d->created_by = $admin['id'];
|
||||||
@ -389,6 +392,7 @@ switch ($action) {
|
|||||||
case 'edit-post':
|
case 'edit-post':
|
||||||
$username = Lang::phoneFormat(_post('username'));
|
$username = Lang::phoneFormat(_post('username'));
|
||||||
$fullname = _post('fullname');
|
$fullname = _post('fullname');
|
||||||
|
$account_type = _post('account_type');
|
||||||
$password = _post('password');
|
$password = _post('password');
|
||||||
$pppoe_password = _post('pppoe_password');
|
$pppoe_password = _post('pppoe_password');
|
||||||
$email = _post('email');
|
$email = _post('email');
|
||||||
@ -451,6 +455,7 @@ switch ($action) {
|
|||||||
$d->pppoe_password = $pppoe_password;
|
$d->pppoe_password = $pppoe_password;
|
||||||
$d->fullname = $fullname;
|
$d->fullname = $fullname;
|
||||||
$d->email = $email;
|
$d->email = $email;
|
||||||
|
$d->account_type = $account_type;
|
||||||
$d->address = $address;
|
$d->address = $address;
|
||||||
$d->phonenumber = $phonenumber;
|
$d->phonenumber = $phonenumber;
|
||||||
$d->service_type = $service_type;
|
$d->service_type = $service_type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user