X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=fe149b5f39425ce0e912599b10b5851541292c70;hb=5e9fa0e297a01cd0d89361f8dc4ae6808627229c;hp=32e5362f9d3385c81a6989191cb3a2e49e3254e7;hpb=0452430dac4d639796581be77e8674207653f42b;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 32e5362f9..fe149b5f3 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -25,14 +25,20 @@ - - Invoice number
+ + Invoice #
<%= $invnum %> + + + + Customer #
+ <%= $custnum %> +   - + INVOICE   @@ -62,32 +68,104 @@ -

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 $ext_desc ( @{$line->{'ext_description'} } ) { + ''. + ''. + ''. + ''. + <%= ( $unitprices + ? ''. + '' + : '' + ) + %> + ''. + ''; + + foreach my $line ( + grep { ( scalar(@sections) > 1 + ? $section->{'description'} eq $_->{'section'}->{'description'} + : 1 + ) } + @detail_items ) + { $OUT .= - ''. - ''. - ''. - ''. + ''. + ''. + ''. + ( $unitprices + ? ''. + '' + : '' + ). + + ''. '' + ; + if ( @{$line->{'ext_description'} } ) { + $OUT .= '' : '>'; + $OUT .= '
RefDescriptionUnit PriceQuantityAmount
- '. $ext_desc. '
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'; + foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + $OUT .= + ''. + ''. + '' + } + $OUT .= '
- '. $ext_desc. '
'; + } } + + + if (scalar(@sections) > 1) { + my $style = 'border-top: 3px solid #000000;'. + 'border-bottom: 3px solid #000000;'; + $OUT .= + ''. + qq( ). + qq(). + $section->{'description'}. ' Total '. + qq(). + $section->{'subtotal'}. ''. + '' + ; + } + + if ($section->{'posttotal'}) { + $OUT .= ''; + $OUT .= + '

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

'; + $OUT .= ''; + } + } my $style = 'border-top: 3px solid #000000;'; @@ -101,7 +179,8 @@ $OUT .= ''. qq( ). - qq(). + qq(' : '>' ). $line->{'total_item'}. ''. qq(). $line->{'total_amount'}. ''. @@ -116,13 +195,6 @@

- <%= $notes %>