X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=9d97243e4d0b41e4b98bb0ed9888d4d3b9016ddf;hb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;hp=e4e145e419b83da85a9b70504bab9dfbc696375f;hpb=df185d34f354c5788e8c4693182b7689a3333839;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index e4e145e41..9d97243e4 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -14,7 +14,7 @@ - + '. - ''. - ''. - ''. - '' - ; - foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + '
">"> <%= $returnaddress %> @@ -25,14 +25,20 @@ - + + - @@ -62,31 +68,67 @@
- Invoice number
+
+ Invoice #
<%= $invnum %>
+ + Customer #
+ <%= $custnum %> +
  + INVOICE  
-

CHARGES -

- - - - - - - <%= + <%= + foreach my $section ( @sections ) { + $OUT .= '
RefDescriptionAmount
'; + if ($section->{'description'}) { + $OUT .= + '

'. uc(substr($section->{'description'},0,1)). + ''. uc(substr($section->{'description'},1)). + ''. + '

'; + }else{ + $OUT .= + '

CHARGES'. + '

'; + } + $OUT .= '

'; - foreach my $line ( @detail_items ) { $OUT .= - '

'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
'. + ''. + ''. + ''. + ''. + ''; + + foreach my $line ( + grep { ( scalar(@sections) > 1 + ? $section->{'description'} eq $_->{'section'}->{'description'} + : 1 + ) } + @detail_items ) + { + $OUT .= + ''. + ''. + ''. + ''. + '' + ; + foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + $OUT .= + ''. + ''. + ''. + ''. + '' + } + } + + + if (scalar(@sections) > 1) { + my $style = 'border-top: 3px solid #000000;'. + 'border-bottom: 3px solid #000000;'; $OUT .= - ''. - ''. - ''. - ''. + ''. + qq(). + qq('. + qq('. '' + ; } } @@ -116,13 +158,6 @@
RefDescriptionAmount
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
- '. $ext_desc. '
- '. $ext_desc. '
 ). + $section->{'description'}. ' Total ). + $section->{'subtotal'}. '


- <%= $notes %>