X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=fc553d5d53e81253df6621053398744d2ccd5c66;hp=fe2a9a9763c27889688bd6cebb7ee8bdd7f76cb4;hb=bc03d12fffd22153b5035bc021450387bacc17b8;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/conf/invoice_html b/conf/invoice_html index fe2a9a976..fc553d5d5 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -78,6 +78,14 @@ : '' %> + <%= + if($barcode_cid) { + $OUT .= qq!
!; + } + elsif($barcode_img) { + $OUT .= qq!
!; + } + %> Terms: <%= $terms %>
<%= $po_line %> @@ -87,6 +95,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 +129,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 +173,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 +215,7 @@ } } if ($section->{'posttotal'}) { - $OUT .= ''; + $OUT .= ''; $OUT .= '

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