X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=df4674b6a25f0644e22ce449bb7deed8b2a5cb1e;hb=92d0bc2bf6c4c6d43c7209b9bf437da05d2cfa8f;hp=026bc8b6b6fdea420bbfc630d2c664887eb23ccc;hpb=4c951501b14bf459fa039db9ef093cfea9e37db3;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 026bc8b6b..df4674b6a 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -42,7 +42,7 @@
Ref | '. - 'Description | '. - ( $unitprices - ? 'Unit Price | '. - 'Quantity | ' - : '' - ). - 'Amount | '. + '|
---|---|---|---|---|---|
Ref | '. + 'Description | '. + ( $unitprices + ? 'Unit Price | '. + 'Quantity | ' + : '' + ). + 'Amount | '; + } '|
'. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ' | '. - ''. $line->{'description'}. ' | '. - ( $unitprices - ? ''. $line->{'unit_amount'}. ' | '. - ''. $line->{'quantity'}. ' | ' - : '' - ). - - ''. $line->{'amount'}. ' | '. - '|
'. + ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ' | '. + ''. $line->{'description'}. ' | '. + ( $unitprices + ? ''. $line->{'unit_amount'}. ' | '. + ''. $line->{'quantity'}. ' | ' + : '' + ). + + ''. $line->{'amount'}. ' | '; + } + $OUT .= '|
). - qq( | ' : '>' ). - $section->{'description'}. ' Total | '. - qq(). - $section->{'subtotal'}. ' | '. - '); + if ($section->{total_generator}) { + $OUT .= &{$section->{total_generator}}($section); + } else { + $OUT .= qq( | ' : '>' ). + $section->{'description'}. ' Total | '. + qq(). + $section->{'subtotal'}. ' | '; + } + $OUT .= ''; } } if ($section->{'posttotal'}) { @@ -203,15 +214,18 @@ if ++$linenum == scalar(@total_items); $OUT .= - '
). - qq( | ' : '>' ). - $line->{'total_item'}. ' | '. - qq(). - $line->{'total_amount'}. ' | '. - '|||
). + qq( | ' : '>' ). + $line->{'total_item'}. ' | '. + qq(). + $line->{'total_amount'}. ' | '; + } + $OUT .= '
<%= $footer %> +
><%= $footer %>