From: jeff Date: Fri, 2 Jul 2010 03:06:31 +0000 (+0000) Subject: fix html ext_desc alignment in svc_phone sections X-Git-Tag: root_of_svc_elec_features~90 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=b41cc79f66f4e701e0f6d973758529ebff702bf1 fix html ext_desc alignment in svc_phone sections --- 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'}. '';