summaryrefslogtreecommitdiff
path: root/conf/invoice_htmlsummary
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-07-24 15:35:55 -0700
committerMark Wells <mark@freeside.biz>2013-07-24 15:35:55 -0700
commit2889d62a977c31e99ca64327439f215cf10cc7d8 (patch)
tree4d327531601031ef1e13912af6b58657d1880802 /conf/invoice_htmlsummary
parent8232bafea84d89d7868c886821a06ac3b0c8e7c9 (diff)
changes to invoice previous balance display, #23573, #23964
Diffstat (limited to 'conf/invoice_htmlsummary')
-rw-r--r--conf/invoice_htmlsummary14
1 files changed, 2 insertions, 12 deletions
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 @@
</tr>
<tr><td colspan=2><br></td></tr>
<%=
- 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 .= '<tr><td><b>'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '</b></td>';
my $celltype = ($last == $section) ? 'th' : 'td';
$OUT .= qq(<$celltype align="right"><b>). $section->{'subtotal'}. "</b></$celltype></tr>";