summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-04-15 16:13:21 -0500
committerMitch Jackson <mitch@freeside.biz>2018-04-16 23:37:45 +0000
commit2f341bbdeeebb1a138aae020d2297fb22da98f98 (patch)
tree60f5a4d60647b0ed2c339c43b5c73897bec7444f
parentb3f2ec98134fb50128e2bbe00bd22c3a3dc18a9a (diff)
RT# 78190 Fix format bug for invoices sectioned by location
-rw-r--r--conf/invoice_html10
1 files 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 .= '</table>' if $notfirst;
+ $OUT .= '</table>' if $notfirst++;
$OUT .=
'<table width="100%"><tr><td>'.
'<p align="right"><b><font size="+1">'.
@@ -145,7 +145,10 @@
'</td></tr>';
}
unless ($section->{'summarized'}) {
- $OUT .= '</table>' if ( $notfirst || $section->{'pretotal'} && !$summary );
+ if ( $notfirst || $section->{'pretotal'} && !$summary ) {
+ $OUT .= '</table>';
+ $notfirst = 1;
+ }
$OUT .= '<table><tr><td>';
$OUT .= '<p class="allcaps"><b>';
my $sectionhead;
@@ -292,9 +295,6 @@
'<p>';
$OUT .= '</td></tr>';
}
-
- $notfirst++;
-
}
my $style = 'border-top: 3px solid #000000;';