RT#28842: NG portal - Changes for prepaid needs [bug fix for unlimited usage pkgs]
authorjonathan <jonathan@freeside.biz>
Wed, 20 May 2015 07:30:08 +0000 (07:30 +0000)
committerjonathan <jonathan@freeside.biz>
Wed, 20 May 2015 07:30:08 +0000 (07:30 +0000)
ng_selfservice/prepaid.php

index 1478400..d9e6a8d 100644 (file)
@@ -84,7 +84,7 @@ foreach ($cust_pkg as $pkg) {
   $thissvc['pkgnum'] = $pkg['pkgnum'];
   $thissvc['status'] = $pkg['status'];
   $actsvcs[$thissvc['svcnum']] = $thissvc;
   $thissvc['pkgnum'] = $pkg['pkgnum'];
   $thissvc['status'] = $pkg['status'];
   $actsvcs[$thissvc['svcnum']] = $thissvc;
-  if ($thissvc['overlimit']) {
+  if ($thissvc['overlimit'] or ($thissvc['status'] != 'active')) {
     $expsvcs[$thissvc['svcnum']] = $thissvc;
   }
 }
     $expsvcs[$thissvc['svcnum']] = $thissvc;
   }
 }