X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=df4674b6a25f0644e22ce449bb7deed8b2a5cb1e;hb=e846584edebcd07839105c846f61f52d66edb092;hp=7ee0fdc19380bf9ab2ffd87bbd0f616da455a725;hpb=06187016fd78ba41fb82846b9e8d461405f316b6;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 7ee0fdc19..df4674b6a 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -114,15 +114,20 @@ $OUT .= '
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 %>