X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=47bdbfb7cac1d5d6ce2dcf6e5c3bcb2dce3e37db;hp=a6ea1e9e31b94e95b77a56cce912cd051e3e4512;hb=refs%2Fheads%2F37802;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary index a6ea1e9e3..47bdbfb7c 100644 --- a/conf/invoice_htmlsummary +++ b/conf/invoice_htmlsummary @@ -32,18 +32,8 @@
<%= - my ($last) = grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } reverse @sections; - - #false laziness w/invoice_latexsummary - foreach my $section ( - grep { - $_->{tax_section} || !$_->{summarized} - and ! $_->{adjust_section} - and !($finance_section && $_->{'description'} eq $finance_section) - and $_->{'description'} !~ /^\d+ $/ - } - @sections - ) { + my $last = $summary_subtotals[-1]; + foreach my $section (@summary_subtotals) { $OUT .= ''. ($section->{'description'} ? $section->{'description'} : 'Charges' ). ''; my $celltype = ($last == $section) ? 'th' : 'td'; $OUT .= qq(<$celltype align="right">). $section->{'subtotal'}. "";