X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=dfd87c79b9c645c4a3014f30eefa82ad16c06f04;hb=refs%2Fheads%2F3.x-pre;hp=567385b06bc210e53dcd25f742fb202f569cc5c5;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 567385b06..dfd87c79b 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 +194,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 %> - |