forked from kevinowino869/mitrobill
Merge branch 'hotspotbilling:Development' into Development
This commit is contained in:
commit
4d8cec1a88
@ -47,8 +47,11 @@ switch ($action) {
|
|||||||
}
|
}
|
||||||
$ui->assign('_title', 'Order Plan');
|
$ui->assign('_title', 'Order Plan');
|
||||||
$ui->assign('_system_menu', 'package');
|
$ui->assign('_system_menu', 'package');
|
||||||
|
$account_type = $user['account_type'];
|
||||||
|
if(empty($account_type)){
|
||||||
|
$account_type = 'Personal';
|
||||||
|
}
|
||||||
if (!empty ($_SESSION['nux-router'])) {
|
if (!empty ($_SESSION['nux-router'])) {
|
||||||
$account_type = $user['account_type'];
|
|
||||||
if ($_SESSION['nux-router'] == 'radius') {
|
if ($_SESSION['nux-router'] == 'radius') {
|
||||||
$radius_pppoe = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'PPPOE')->where('prepaid', 'yes')->find_many();
|
$radius_pppoe = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'PPPOE')->where('prepaid', 'yes')->find_many();
|
||||||
$radius_hotspot = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'Hotspot')->where('prepaid', 'yes')->find_many();
|
$radius_hotspot = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'Hotspot')->where('prepaid', 'yes')->find_many();
|
||||||
@ -298,7 +301,6 @@ switch ($action) {
|
|||||||
$_POST['gateway'] = $pgs[0];
|
$_POST['gateway'] = $pgs[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case 'buy':
|
case 'buy':
|
||||||
$gateway = _post('gateway');
|
$gateway = _post('gateway');
|
||||||
if (empty ($gateway) && !empty ($_SESSION['gateway'])) {
|
if (empty ($gateway) && !empty ($_SESSION['gateway'])) {
|
||||||
|
@ -84,5 +84,8 @@
|
|||||||
],
|
],
|
||||||
"2024.3.19.1" : [
|
"2024.3.19.1" : [
|
||||||
"ALTER TABLE `tbl_customers` ADD `account_type` ENUM('Business', 'Personal') DEFAULT 'Personal' COMMENT 'For selecting account type' AFTER `coordinates`;"
|
"ALTER TABLE `tbl_customers` ADD `account_type` ENUM('Business', 'Personal') DEFAULT 'Personal' COMMENT 'For selecting account type' AFTER `coordinates`;"
|
||||||
|
],
|
||||||
|
"2024.3.19.2" : [
|
||||||
|
"ALTER TABLE `tbl_plans` ADD `plan_type` ENUM('Business', 'Personal') DEFAULT 'Personal' COMMENT 'For selecting account type' ;"
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user