From bc721edaca3179d07d07e86b24375725c39157e8 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Tue, 25 Jun 2024 16:11:31 +0700 Subject: [PATCH] Delete Customer, make sure delete it on mikrotik, not go to expired plan --- system/controllers/customers.php | 1 + system/controllers/plan.php | 1 + 2 files changed, 2 insertions(+) diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 303c25ea..e4981ece 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -339,6 +339,7 @@ switch ($action) { if ($_app_stage != 'demo') { if (file_exists($dvc)) { require_once $dvc; + $p['plan_expired'] = 0; (new $p['device'])->remove_customer($c, $p); } else { new Exception(Lang::T("Devices Not Found")); diff --git a/system/controllers/plan.php b/system/controllers/plan.php index 22f5c4f9..3153660e 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -333,6 +333,7 @@ switch ($action) { if ($_app_stage != 'demo') { if (file_exists($dvc)) { require_once $dvc; + $p['plan_expired'] = 0; (new $p['device'])->remove_customer($customer, $p); } else { new Exception(Lang::T("Devices Not Found"));