X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=2073d7ff40b8205401f24f70db832c0c9d0266a5;hp=fe2a9a9763c27889688bd6cebb7ee8bdd7f76cb4;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/conf/invoice_html b/conf/invoice_html index fe2a9a976..2073d7ff4 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -87,6 +87,7 @@ <%= $summary %> <%= my $notfirst = 0; + my $columncount = $unitprices ? 5 : 3; foreach my $section ( grep { !$summary || $_->{description} ne $finance_section } @sections ) { if ($section->{'pretotal'} && !$summary) { $OUT .= '' if $notfirst; @@ -120,7 +121,9 @@ ''; if ($section->{header_generator}) { - $OUT .= &{$section->{header_generator}}(); + my $header = &{$section->{header_generator}}(); + $OUT .= $header; + $columncount = scalar(my @array = split /<\/th>Description'. @@ -162,19 +165,25 @@ $OUT .= ''; $lastref = $line->{'ref'}; if ( @{$line->{'ext_description'} } ) { - $OUT .= '' : '>'; - $OUT .= ''; + unless ( $section->{description_generator} ) { + $OUT .= '{'ext_description'} } ) { $OUT .= ''. + ( $section->{'description_generator'} ? '' : '' ). ''. '' } - $OUT .= '
/i ? '' : 'colspan=99' ). '>'. '  '. $ext_desc. '
'; + unless ( $section->{description_generator} ) { + $OUT .= ''; + } + $OUT .= ''; } } @@ -198,7 +207,7 @@ } } if ($section->{'posttotal'}) { - $OUT .= ''; + $OUT .= ''; $OUT .= '

'. $section->{'posttotal'}. ''. @@ -224,8 +233,8 @@ $OUT .= &{$section->{total_line_generator}}($line); } else { $OUT .= qq( ). - qq(' : '>' ). + qq('. $line->{'total_item'}. ''. qq(). $line->{'total_amount'}. '';