X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main%2Fpackages.html;h=da4d587f2dcc00b0dfd895b21ec5fdda9f5420b4;hb=c231b383ee220e6d53c2434a945a6311724ef972;hp=e16b2c1d40a0a59f89a31019cc339f69eeaad6c4;hpb=8cbe016ac2c28cd209c48f053f361573368e7988;p=freeside.git diff --git a/httemplate/view/cust_main/packages.html b/httemplate/view/cust_main/packages.html index e16b2c1d4..da4d587f2 100755 --- a/httemplate/view/cust_main/packages.html +++ b/httemplate/view/cust_main/packages.html @@ -1,3 +1,20 @@ + % my $s = 0; % if ( $curuser->access_right('Qualify service') ) { @@ -7,7 +24,7 @@ % if ( $curuser->access_right('Order customer package') ) { <% $s++ ? ' | ' : '' %> - <& order_pkg_link.html, $cust_main &> + <& /elements/order_pkg_link.html, 'cust_main'=>$cust_main &> % } % if ( $curuser->access_right('One-time charge') @@ -116,7 +133,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 +195,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 ); }