X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fsection.html;h=490f09c12ae50415f91a56cf1b6c11e0bd845fbb;hb=50b038e338455c5d20f48f99767767b70c515c31;hp=e888c94ac175179e57503273818d2ce34eec4230;hpb=4d364d506c717b1b73858dd287413d3788ec586d;p=freeside.git diff --git a/httemplate/view/cust_main/packages/section.html b/httemplate/view/cust_main/packages/section.html index e888c94ac..490f09c12 100755 --- a/httemplate/view/cust_main/packages/section.html +++ b/httemplate/view/cust_main/packages/section.html @@ -1,4 +1,5 @@ % if ( @$packages ) { + % #my $width = $show_location ? 'WIDTH="25%"' : 'WIDTH="33%"'; <% mt('Package') |h %> @@ -8,6 +9,7 @@ <% mt('Services') |h %> % } + % #$FS::cust_pkg::DEBUG = 2; % foreach my $cust_pkg (@$packages) { @@ -20,6 +22,8 @@ cust_pkg-group_by_location no_services )), + #for status.html + 'has_cust_payby_auto' => $opt{cust_main}->has_cust_payby_auto, &> % } % } else { # there are no packages @@ -67,9 +71,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> @@ -114,6 +120,7 @@ my %conf_opt = ( #for status.html 'cust_pkg-show_autosuspend' => $conf->exists('cust_pkg-show_autosuspend'), 'pkg_attached' => $pkg_attached, + 'part_pkg-delay_cancel-days' => $conf->config('part_pkg-delay_cancel-days') || 1, #for status.html pkg-balances 'pkg-balances' => $conf->exists('pkg-balances'), 'money_char' => ( $conf->config('money_char') || '$' ),