Not Active Customer cannot recharge

This commit is contained in:
Ibnu Maksum 2024-05-17 09:17:38 +07:00
parent 04fda479b7
commit d84cf96d01
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -34,6 +34,10 @@ class Package
$c = ORM::for_table('tbl_customers')->where('id', $id_customer)->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;
$bills = [];
// Zero cost recharge