From 642cd9bbd96603c696f3932f527d57ad33e9b7ee Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 24 Jul 2013 15:35:21 -0700 Subject: changes to invoice previous balance display, #23573, #23964 --- conf/invoice_htmlsummary | 14 ++------------ conf/invoice_latexsummary | 11 +---------- 2 files changed, 3 insertions(+), 22 deletions(-) (limited to 'conf') 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'}. ""; diff --git a/conf/invoice_latexsummary b/conf/invoice_latexsummary index a68e5d381..4c48ab1c2 100644 --- a/conf/invoice_latexsummary +++ b/conf/invoice_latexsummary @@ -21,16 +21,7 @@ \textbf{\underline{Summary of New Charges}} & \\ &\\ [@-- - #false laziness w/invoice_htmlsummary - foreach my $section ( - grep { - $_->{tax_section} || !$_->{summarized} - and ! $_->{adjust_section} - and !($finance_section && $_->{'description'} eq $finance_section) - and $_->{'description'} !~ /^\d+ $/ - } - @sections - ) { + foreach my $section (@summary_subtotals) { $OUT .= '\textbf{'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '}'; $OUT .= '&\textbf{'. $section->{'subtotal'}. '}\\\\'; } -- cgit v1.2.1