X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=9d97243e4d0b41e4b98bb0ed9888d4d3b9016ddf;hb=6bc756ca8124ecc42fc1fed2dd660f1b08561d29;hp=f9fd847f429ce3f66e2b5fd6533c68359311f0d4;hpb=6251bf0159dc4957e4d6abf5dac8aeb338f8b1cd;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index f9fd847f4..9d97243e4 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -25,7 +25,7 @@ - + Invoice #
<%= $invnum %> @@ -68,31 +68,67 @@ -

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 $ext_desc ( @{$line->{'ext_description'} } ) { + ''. + ''. + ''. + ''. + ''. + ''; + + 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('. + '' + ; } }
RefDescriptionAmount
- '. $ext_desc. '
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
- '. $ext_desc. '
 ). + $section->{'description'}. ' Total ). + $section->{'subtotal'}. '