From a93644139befbadd246c758f433811a2f0e9c2a4 Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Sun, 15 Apr 2018 16:13:21 -0500 Subject: [PATCH] RT# 78190 Fix format bug for invoices sectioned by location --- conf/invoice_html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conf/invoice_html b/conf/invoice_html index d8a2d0a97..935c94346 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -134,7 +134,7 @@ my $columncount = $unitprices ? 5 : 3; foreach my $section ( grep { !$summary || $_->{description} ne $finance_section } @sections ) { if ($section->{'pretotal'} && !$summary) { - $OUT .= '' if $notfirst; + $OUT .= '' if $notfirst++; $OUT .= ''; } unless ($section->{'summarized'}) { - $OUT .= '
'. '

'. @@ -145,7 +145,10 @@ '

' if ( $notfirst || $section->{'pretotal'} && !$summary ); + if ( $notfirst || $section->{'pretotal'} && !$summary ) { + $OUT .= ''; + $notfirst = 1; + } $OUT .= ''; } - - $notfirst++; - } my $style = 'border-top: 3px solid #000000;'; -- 2.11.0
'; $OUT .= '

'; my $sectionhead; @@ -292,9 +295,6 @@ '

'; $OUT .= '