From 61bd042b1533d1da34772f0d3648a2e8ff9db028 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 29 Apr 2024 13:50:26 +0700 Subject: [PATCH] add notif if Customer is not expired yet when extend --- system/controllers/plan.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/controllers/plan.php b/system/controllers/plan.php index 671a3587..d4d1c7a5 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -766,9 +766,11 @@ switch ($action) { Mikrotik::addPpoeUser($client, $p, $c); } } + _log("$admin[fullname] extend Customer $tur[customer_id] $tur[username] for $days days", $admin['user_type'], $admin['id']); + r2(U . 'plan', 's', "Extend until $expiration"); + }else{ + r2(U . 'plan', 's', "Customer is not expired yet"); } - _log("$admin[fullname] extend Customer $tur[customer_id] $tur[username] for $days days", $admin['user_type'], $admin['id']); - r2(U . 'plan', 's', "Extend until $expiration"); break; default: $ui->assign('xfooter', '');