X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=ae6910dbaf946fe846b9ce331424705cd7422ed2;hb=fe16cec1c82f4e1f1c2586c8259cd607fcb14d79;hp=e4e145e419b83da85a9b70504bab9dfbc696375f;hpb=df185d34f354c5788e8c4693182b7689a3333839;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index e4e145e41..ae6910dba 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,32 +68,90 @@
- Invoice number
+
+ Invoice #
<%= $invnum %>
+ + Customer #
+ <%= $custnum %> +
  + INVOICE  
-

CHARGES -

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

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

'. + '

'; + } + $OUT .= '
'; + 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 .= - ''. - ''. - ''. - ''. + ''. + ''. + ''. + ''. '' + ; + if ( @{$line->{'ext_description'} } ) { + $OUT .= ''; + } } + + + if (scalar(@sections) > 1) { + my $style = 'border-top: 3px solid #000000;'. + 'border-bottom: 3px solid #000000;'; + $OUT .= + ''. + qq(). + qq('. + qq('. + '' + ; + } + + if ($section->{'posttotal'}) { + $OUT .= ''; + } + } my $style = 'border-top: 3px solid #000000;'; @@ -116,13 +180,6 @@
RefDescriptionAmount
- '. $ext_desc. '
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
'; + foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + $OUT .= + ''. + ''. + '' + } + $OUT .= '
- '. $ext_desc. '
 ). + $section->{'description'}. ' Total ). + $section->{'subtotal'}. '
'; + $OUT .= + '

'. $section->{'posttotal'}. + ''. + '

'; + $OUT .= '



- <%= $notes %>