mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-19 09:08:56 +02:00
Delete Customer, make sure delete it on mikrotik, not go to expired plan
This commit is contained in:
parent
a2eda99f88
commit
bc721edaca
2 changed files with 2 additions and 0 deletions
|
@ -339,6 +339,7 @@ switch ($action) {
|
||||||
if ($_app_stage != 'demo') {
|
if ($_app_stage != 'demo') {
|
||||||
if (file_exists($dvc)) {
|
if (file_exists($dvc)) {
|
||||||
require_once $dvc;
|
require_once $dvc;
|
||||||
|
$p['plan_expired'] = 0;
|
||||||
(new $p['device'])->remove_customer($c, $p);
|
(new $p['device'])->remove_customer($c, $p);
|
||||||
} else {
|
} else {
|
||||||
new Exception(Lang::T("Devices Not Found"));
|
new Exception(Lang::T("Devices Not Found"));
|
||||||
|
|
|
@ -333,6 +333,7 @@ switch ($action) {
|
||||||
if ($_app_stage != 'demo') {
|
if ($_app_stage != 'demo') {
|
||||||
if (file_exists($dvc)) {
|
if (file_exists($dvc)) {
|
||||||
require_once $dvc;
|
require_once $dvc;
|
||||||
|
$p['plan_expired'] = 0;
|
||||||
(new $p['device'])->remove_customer($customer, $p);
|
(new $p['device'])->remove_customer($customer, $p);
|
||||||
} else {
|
} else {
|
||||||
new Exception(Lang::T("Devices Not Found"));
|
new Exception(Lang::T("Devices Not Found"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue