mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-24 23:45:38 +08:00
Not Active Customer cannot recharge
This commit is contained in:
parent
04fda479b7
commit
d84cf96d01
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ class Package
|
||||||
$c = ORM::for_table('tbl_customers')->where('id', $id_customer)->find_one();
|
$c = ORM::for_table('tbl_customers')->where('id', $id_customer)->find_one();
|
||||||
$p = ORM::for_table('tbl_plans')->where('id', $plan_id)->find_one();
|
$p = ORM::for_table('tbl_plans')->where('id', $plan_id)->find_one();
|
||||||
|
|
||||||
|
if($c['status'] != 'Active'){
|
||||||
|
_alert(Lang::T('This account status').' : '.Lang::T($c['status']),'danger', "");
|
||||||
|
}
|
||||||
|
|
||||||
$add_cost = 0;
|
$add_cost = 0;
|
||||||
$bills = [];
|
$bills = [];
|
||||||
// Zero cost recharge
|
// Zero cost recharge
|
||||||
|
|
Loading…
Reference in a new issue