X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fsection.html;h=16016626406fcd1471391e8b65054b50be6deba6;hb=b5d165e21a606efaa47f4ef4b4a49d96df00361d;hp=fe9f283c7df8f02ec086b40f55bc4e192307e053;hpb=3e9a428cbc8abd4af6fea8eb828126519b43198b;p=freeside.git diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index fe9f283c7..160166264 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -34,6 +34,7 @@ % my ($cust_pkg, %iopt) = @_; % $iopt{'cust_pkg'} = $cust_pkg; % $iopt{'part_pkg'} = $cust_pkg->part_pkg; +% $iopt{'row'} = $row; <& package.html, %iopt &> @@ -71,9 +72,11 @@ <& .packagerow, $cust_pkg->change_to_pkg, %iopt, 'change_from' => 1 &> % } % # include supplemental packages if any -% $iopt{'supplemental'} = ($iopt{'supplemental'} || 0) + 1; -% foreach my $supp_pkg ($cust_pkg->supplemental_pkgs) { - <& .packagerow, $supp_pkg, %iopt &> +% if ( $cust_pkg->_supplemental ) { +% $iopt{'supplemental'} = ($iopt{'supplemental'} || 0) + 1; +% foreach my $supp_pkg (@{ $cust_pkg->_supplemental }) { + <& .packagerow, $supp_pkg, %iopt &> +% } % } <%shared>