X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=65c777e769b58273ba3b63b760f9c265c8c4fd4d;hp=14b25c671306e37f3dcfd7fc88a7f4618fdfa9ff;hb=6fb3ca52b569e131e082d3fe3f141ec3a307b164;hpb=dc3217c61d6a62a8e599d8804e05ba45b3224c7e diff --git a/conf/invoice_html b/conf/invoice_html index 14b25c671..65c777e76 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,11 +118,19 @@ ''. ''. ''. + ( $unitprices + ? ''. + '' + : '' + ). + ''. '' ; if ( @{$line->{'ext_description'} } ) { - $OUT .= '
'; if ($section->{'description'}) { $OUT .= @@ -89,6 +99,11 @@ '
RefDescriptionUnit PriceQuantityAmount
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'; + $OUT .= '' : '>'; + $OUT .= '
'; foreach my $ext_desc ( @{$line->{'ext_description'} } ) { $OUT .= ''. @@ -125,13 +148,23 @@ $OUT .= ''. qq(). - qq('. qq('. '' ; } + + if ($section->{'posttotal'}) { + $OUT .= ''; + } + } my $style = 'border-top: 3px solid #000000;'; @@ -145,7 +178,8 @@ $OUT .= ''. qq(). - qq('. qq('.
 ). + qq( colspan=3). $section->{'description'}. ' Total ). $section->{'subtotal'}. '
'; + $OUT .= + '

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

'; + $OUT .= '

 ). + qq(' : '>' ). $line->{'total_item'}. '). $line->{'total_amount'}. '