X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=7cadd7c37df0a62a65b2ab6c86a9213b138058e0;hb=33294bffcc4893da907eb2e85b3fca872b34790f;hp=567385b06bc210e53dcd25f742fb202f569cc5c5;hpb=cd3ed01671d5e1f9332c494abbf4bb110aabe1e3;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 567385b06..7cadd7c37 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -1,6 +1,18 @@ -
+
+
+
+ <%= $watermark %>
+
|
'. + $OUT .= ' | '. ' | ' . emt('Description') . ' | '. ( $unitprices - ? '' . emt('Unit Price') . ' | '. - '' . emt('Quantity') . ' | ' + ? '' . emt('Unit Price') . ' | '. + '' . emt('Quantity') . ' | ' : '' ). '' . emt('Amount') . ' | '; } @@ -147,26 +193,28 @@ ) } @detail_items ) { - $OUT .= - '
---|---|---|---|---|
'. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ' | '. - ''. $line->{'description'}. ' | '. - ( $unitprices - ? ''. $line->{'unit_amount'}. ' | '. - ''. $line->{'quantity'}. ' | ' - : '' - ). - - ''. $line->{'amount'}. ' | '; + my $class = 'invoice_desc_more'; + if ( ($line->{'ref'} || 0) ne $lastref ) { + # then it's a new package (not a continuation) + $class = 'invoice_desc'; + } + $OUT .= '
'; + $OUT .= ' | +'. $line->{'description'}. ' | '; + if ( $unitprices ) { + $OUT .= + ''. $line->{'unit_amount'}. ' | '. + ''. $line->{'quantity'}. ' | '; + } + $OUT .= ''. $line->{'amount'}. ' | '; } $OUT .= '
><%= $footer %> - |