diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cb8c1db..614e99e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ # CHANGELOG +## 2023.12.19 + +- Fix Search Customer +- Disable Registration, Customer just activate voucher Code, and the voucher will be their password +- Remove all used voucher codes + ## 2023.12.18 - Split sms to 160 characters only for Mikrotik Modem diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index f41b7259..074cb649 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -285,6 +285,12 @@ switch ($action) { $ui->display('voucher-add.tpl'); break; + case 'remove-voucher': + $d = ORM::for_table('tbl_voucher')->where_equal('status', '1')->findMany(); + if ($d) { + $d->delete(); + r2(U . 'prepaid/voucher', 's', $_L['Delete_Successfully']); + } case 'print-voucher': $from_id = _post('from_id'); $planid = _post('planid'); diff --git a/ui/ui/voucher.tpl b/ui/ui/voucher.tpl index e72a3bab..28041b92 100644 --- a/ui/ui/voucher.tpl +++ b/ui/ui/voucher.tpl @@ -3,7 +3,13 @@
-
{$_L['Prepaid_Vouchers']}
+
+ + {$_L['Prepaid_Vouchers']} +
diff --git a/version.json b/version.json index 1933b38a..80b49d57 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2023.12.18" + "version": "2023.12.19" } \ No newline at end of file