- @cust_pkg = grep { ( $allpkgs || $if_pkgpart{ $_->pkgpart } )
- && $_->part_pkg->freq
- #remove after fixing discount bug with non-monthly pkgs
- && ( $_->part_pkg->freq =~ /^\d+$/) }
- $cust_main->unsuspended_pkgs;
+ @cust_pkg = grep {
+ ( $allpkgs || $if_pkgpart{ $_->pkgpart } )
+ && ( ! keys %$if_pkg_class || $if_pkg_class->{ $_->part_pkg->classnum } )
+ && $_->part_pkg->freq
+ #remove after fixing discount bug with non-monthly pkgs
+ && ( $_->part_pkg->freq =~ /^\d+$/)
+ }
+ $cust_main->unsuspended_pkgs;
+