X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_pkg.cgi;h=ae869dda6d06bf236e7d205ac3f67971d337ac48;hb=9f2280fbce022ab9bcfc46fe94483730b0aeb0f8;hp=26e01700a58e6032896b9a8a7fa2a20148068ded;hpb=942f129f37980d8a2a87be8c3297663ad38298ba;p=freeside.git diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index 26e01700a..ae869dda6 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -73,7 +73,7 @@ if ( $cgi->param('missing_recur_fee') ) { push @where, "0 = ( SELECT COUNT(*) FROM part_pkg_option WHERE optionname = 'recur_fee' AND part_pkg_option.pkgpart = part_pkg.pkgpart - AND CAST ( optionvalue AS NUMERIC ) > 0 + AND CAST( optionvalue AS NUMERIC ) > 0 )"; } @@ -148,6 +148,7 @@ my $filter_change = #restore this so pagination works $cgi->param('classnum', $classnum) if length($classnum); +#should hide this if there aren't any classes my $html_posttotal = "$filter_change\n
( show class: ". include('/elements/select-pkg_class.html', @@ -225,7 +226,7 @@ push @fields, sub { ], [ { data=>( $is_recur - ? $money_char.sprintf('%.2f ', $part_pkg->option('recur_fee') ) + ? $money_char.sprintf('%.2f ', $part_pkg->option('recur_fee')) : $part_pkg->freq_pretty ), align=> ( $is_recur ? 'right' : 'center' ), @@ -238,6 +239,14 @@ push @fields, sub { : () ), ], + [ { data => + ( $part_pkg->option('recur_fee') == 0 && $part_pkg->recur_show_zero ) + ? ' (printed on invoices)' + : '', + align => 'center', #? + colspan => 2, + }, + ], ( map { my $dst_pkg = $_->dst_pkg; [