X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=fe149b5f39425ce0e912599b10b5851541292c70;hb=5e9fa0e297a01cd0d89361f8dc4ae6808627229c;hp=9d97243e4d0b41e4b98bb0ed9888d4d3b9016ddf;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 9d97243e4..fe149b5f3 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -70,6 +70,16 @@ <%= foreach my $section ( @sections ) { + if ($section->{'pretotal'}) { + $OUT .= + '
'. + '

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

'. + '

'; + } $OUT .= ''. ''. ''. + <%= ( $unitprices + ? ''. + '' + : '' + ) + %> ''. ''; @@ -103,16 +119,26 @@ ''. ''. ''. + ( $unitprices + ? ''. + '' + : '' + ). + ''. '' ; - foreach my $ext_desc ( @{$line->{'ext_description'} } ) { - $OUT .= - ''. - ''. - ''. - ''. - '' + if ( @{$line->{'ext_description'} } ) { + $OUT .= '' : '>'; + $OUT .= '
'; if ($section->{'description'}) { $OUT .= @@ -89,6 +99,12 @@ '
RefDescriptionUnit PriceQuantityAmount
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
- '. $ext_desc. '
'; + foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + $OUT .= + ''. + ''. + '' + } + $OUT .= '
- '. $ext_desc. '
'; } } @@ -130,6 +156,16 @@ '' ; } + + if ($section->{'posttotal'}) { + $OUT .= ''; + $OUT .= + '

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

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