X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_htmlsummary;h=47bdbfb7cac1d5d6ce2dcf6e5c3bcb2dce3e37db;hb=208cc650f3e441400d88f738cb4af78809497aa5;hp=a6ea1e9e31b94e95b77a56cce912cd051e3e4512;hpb=54a357b171aa44f9399b4c146acd2afd3b686075;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>
";