diff options
Diffstat (limited to 'conf/invoice_htmlsummary')
-rw-r--r-- | conf/invoice_htmlsummary | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ </tr> <tr><td colspan=2><br></td></tr> <%= - 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 .= '<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>"; |