summaryrefslogtreecommitdiff
path: root/httemplate/browse
diff options
context:
space:
mode:
authorivan <ivan>2011-06-10 03:33:44 +0000
committerivan <ivan>2011-06-10 03:33:44 +0000
commitc7bf005860b761a55ca075df987fb3b5ade8c242 (patch)
tree59fdf9039e264c654380528ffdf511b9b69d30a2 /httemplate/browse
parent6b4fe3354a905755f9e6f1810cf94bbc269ce81d (diff)
add package def option to show $0 recurring on invoices, RT#9777
Diffstat (limited to 'httemplate/browse')
-rwxr-xr-xhttemplate/browse/part_pkg.cgi10
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi
index dd20f8d31..ae869dda6 100755
--- a/httemplate/browse/part_pkg.cgi
+++ b/httemplate/browse/part_pkg.cgi
@@ -226,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' ),
@@ -239,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;
[