X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=1241f870e98dfbd12ab7ec2b0369082a13233c0a;hp=9d6f528426055a52bcdcb0c27853c6a0f973a4d5;hb=38e34bbc53a4222c7507e95914e1364a5a74623f;hpb=4d2467d2b8c2134f8cab6907c675a9c4f56472ed diff --git a/conf/invoice_html b/conf/invoice_html index 9d6f52842..1241f870e 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -122,7 +122,7 @@ $OUT .= qq!
!; } %> - <%= $terms ? emt('Terms') . ": $terms" : '' %>
+ <%= $terms ? emt('Terms') . ': ' . emt($terms) : '' %>
<%= $po_line %> @@ -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