X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=24a12cc4694a2f825ab326edd377690b57aa8fce;hb=c6782ab85ea83e0c78d85b8975985aac9d467f9d;hp=7d79306342eff6fced37398e59ecd9d1f901624b;hpb=8f89376bceb710bceb8d2d3b9dd7fe24e7d47cf3;p=freeside.git diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index 7d7930634..24a12cc46 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -1,3 +1,29 @@ + % my $s = 0; % if ( $curuser->access_right('Qualify service') ) { @@ -116,7 +142,7 @@ my( $packages, $num_old_packages ) = get_packages($cust_main, $conf); my $show_location = $conf->exists('cust_pkg-always_show_location') - || (grep $_->locationnum, @$packages); # ? '1' : '0'; + || (grep $_->locationnum ne $cust_main->ship_locationnum, @$packages); my $countrydefault = scalar($conf->config('countrydefault')) || 'US'; #subroutines @@ -178,6 +204,10 @@ sub get_packages { } $num_old_packages -= scalar(@packages); + + # don't include supplemental packages in this list; they'll be found from + # their main packages + @packages = grep !$_->main_pkgnum, @packages; ( \@packages, $num_old_packages ); }