X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=1241f870e98dfbd12ab7ec2b0369082a13233c0a;hp=d8a2d0a97d5bc2a128b74ce5f644342e5428f8f8;hb=38e34bbc53a4222c7507e95914e1364a5a74623f;hpb=a2ecb1cf6a6c084c521710f1256da082f70ba9e5 diff --git a/conf/invoice_html b/conf/invoice_html index d8a2d0a97..1241f870e 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;'; @@ -327,6 +327,61 @@
'; $OUT .= '

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

'; $OUT .= '



+<%= + + my @location_summary_sections = + grep { + ref $_->{location} + && $_->{locationnum} + && $_->{description} + && $_->{description} ne $finance_section + } @sections; + + if ( $multisection eq 'location' && scalar(@location_summary_sections) > 1 ) { + + $OUT .= ' +
+ + + + +
+

+ '.emt('Summary Of New Charges By Location').' +

+

+ + + + + + + + + + + '; + + for my $section (@location_summary_sections) { + next unless $section->{description}; + $OUT .= ' + + + + + + '; + } + + $OUT .= ' + + +
'.emt('Location').''.emt('Amount').'
'.$section->{description}.''. $section->{subtotal} .'
   
+

+ '; + +} %> + <%= length($summary) ? '' : ( $smallernotes