X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=fe2a9a9763c27889688bd6cebb7ee8bdd7f76cb4;hp=df4674b6a25f0644e22ce449bb7deed8b2a5cb1e;hb=ad7f49821d40ffd099a45acc32ba91e0e211aede;hpb=63a268637b2d51a8766412617724b9436439deb6 diff --git a/conf/invoice_html b/conf/invoice_html index df4674b6a..fe2a9a976 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -86,8 +86,10 @@ <%= $summary %> <%= + my $notfirst = 0; foreach my $section ( grep { !$summary || $_->{description} ne $finance_section } @sections ) { if ($section->{'pretotal'} && !$summary) { + $OUT .= '' if $notfirst; $OUT .= '
'. '

'. @@ -95,9 +97,10 @@ ''. uc(substr($section->{'pretotal'},1)). ''. '

'. - '

'; + ''; } unless ($section->{'summarized'}) { + $OUT .= '' if ( $notfirst || $section->{'pretotal'} && !$summary ); $OUT .= ''; } - ''; + $OUT .= ''; my $lastref = 0; foreach my $line ( @@ -176,7 +179,7 @@ } - if (scalar(@sections) > 1) { + if ($section->{'description'} || $multisection) { my $style = 'border-top: 3px solid #000000;'. 'border-bottom: 3px solid #000000;'; $OUT .= @@ -203,6 +206,8 @@ $OUT .= ''; } + $notfirst++; + } my $style = 'border-top: 3px solid #000000;'; @@ -211,7 +216,7 @@ foreach my $line ( @total_items ) { $style .= 'border-bottom: 3px solid #000000;' - if ++$linenum == scalar(@total_items); + if ++$linenum == scalar(@total_items) - ( $balance_due_below_line ? 1 : 0 ); $OUT .= '';
'; if ($section->{'description'}) { $OUT .= @@ -128,7 +131,7 @@ ). 'Amount