X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=47bdbfb7cac1d5d6ce2dcf6e5c3bcb2dce3e37db;hb=12560fb5a69ddace43dc267b44894acb5352c98c;hp=a6ea1e9e31b94e95b77a56cce912cd051e3e4512;hpb=fbe12cde0f7e97427693cb0607a5e28d89acf3f7;p=freeside.git
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'}. "$celltype>
";