RT#28842: NG portal - Changes for prepaid needs [bug fix for unlimited usage pkgs]
[freeside.git] / 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;
-  if ($thissvc['overlimit']) {
+  if ($thissvc['overlimit'] or ($thissvc['status'] != 'active')) {
     $expsvcs[$thissvc['svcnum']] = $thissvc;
   }
 }