X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=df4674b6a25f0644e22ce449bb7deed8b2a5cb1e;hb=8d626f5da7303a4f860544579a895703bd00dc3a;hp=73dcc2e426988e414a7170e56cbb906e7b053574;hpb=947c1f964f1304242f8a6ffabacccf040f1d505e;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 73dcc2e42..df4674b6a 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -13,7 +13,7 @@ .invoice_totaldesc TD { font-size: 10pt; empty-cells: show } -
+
@@ -42,7 +42,7 @@ @@ -114,15 +114,20 @@ $OUT .= '
  - INVOICE + <%= $notice_name ? substr($notice_name, 0, 1) : 'I' %><%= $notice_name ? uc(substr($notice_name, 1)) : 'NVOICE' %>  
'. - ''. - ''. - ''. - ( $unitprices - ? ''. - '' - : '' - ). - ''. + ''; + + if ($section->{header_generator}) { + $OUT .= &{$section->{header_generator}}(); + } else { + $OUT .= ''. + ''. + ( $unitprices + ? ''. + '' + : '' + ). + ''; + } ''; my $lastref = 0; @@ -134,21 +139,24 @@ @detail_items ) { $OUT .= - ''. - ''. - ''. - ( $unitprices - ? ''. - '' - : '' - ). - - ''. - '' - ; + ''. + ''. + ''. + ( $unitprices + ? ''. + '' + : '' + ). + + ''; + } + $OUT .= ''; $lastref = $line->{'ref'}; if ( @{$line->{'ext_description'} } ) { $OUT .= ' ). - qq('. - qq('. - '' - ; + qq(); + if ($section->{total_generator}) { + $OUT .= &{$section->{total_generator}}($section); + } else { + $OUT .= qq('. + qq('; + } + $OUT .= ''; } } if ($section->{'posttotal'}) { @@ -203,15 +214,18 @@ if ++$linenum == scalar(@total_items); $OUT .= - ''. - qq(). - qq('. - qq('. - '' - ; + ''; + if ($section->{total_line_generator}) { + $OUT .= &{$section->{total_line_generator}}($line); + } else { + $OUT .= qq(). + qq('. + qq('; + } + $OUT .= ''; $style=''; @@ -221,9 +235,15 @@
RefDescriptionUnit PriceQuantityAmount
RefDescriptionUnit PriceQuantityAmount
'. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'. + ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
' : '>' ). - $section->{'description'}. ' Total ). - $section->{'subtotal'}. '
 ' : '>' ). + $section->{'description'}. ' Total ). + $section->{'subtotal'}. '
 ' : '>' ). - $line->{'total_item'}. '). - $line->{'total_amount'}. '
 ' : '>' ). + $line->{'total_item'}. '). + $line->{'total_amount'}. '


-<%= length($summary) ? '' : $notes %> +<%= length($summary) + ? '' + : ( $smallernotes + ? ''.$notes.'' + : $notes + ) +%>
-

<%= $footer %> +

><%= $footer %>