From: levinse Date: Sun, 5 Jun 2011 03:45:30 +0000 (+0000) Subject: remove double summary listing of svc_phone usage when used with invoice summary,... X-Git-Tag: freeside_2_3_0~177 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=76a1ecdb1b69fa83a8385adc4a50ac243096c994;hp=db303b2cb273b45e03467f36e076b7c1db3bc4a4 remove double summary listing of svc_phone usage when used with invoice summary, RT12637 --- diff --git a/conf/invoice_htmlsummary b/conf/invoice_htmlsummary index b158478e1..a06c8ffea 100644 --- a/conf/invoice_htmlsummary +++ b/conf/invoice_htmlsummary @@ -32,9 +32,9 @@
<%= - my ($last) = grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section)} reverse @sections; + my ($last) = grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } reverse @sections; - foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section)} @sections ) { + foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } @sections ) { $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 a181ee435..4e4f62bf8 100644 --- a/conf/invoice_latexsummary +++ b/conf/invoice_latexsummary @@ -21,7 +21,7 @@ \textbf{\underline{Summary of New Charges}} & \\ &\\ [@-- - foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section)} @sections ) { + foreach my $section ( grep { $_->{tax_section} || !$_->{summarized} and !($finance_section && $_->{'description'} eq $finance_section) and $_->{'description'} !~ /^\d+ $/ } @sections ) { $OUT .= '\textbf{'. ($section->{'description'} ? $section->{'description'} : 'Charges' ). '}'; $OUT .= '&\textbf{'. $section->{'subtotal'}. '}\\\\'; }