X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=7cadd7c37df0a62a65b2ab6c86a9213b138058e0;hb=458f6fc84389aa3d4679380bb15aad74bdec0cb3;hp=cd348274fd94f372fd369e2af926e0ec0fac863d;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index cd348274f..7cadd7c37 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -1,6 +1,18 @@ -
+
+
+
+ <%= $watermark %>
+
|
'. + $OUT .= ' | '. ' | ' . emt('Description') . ' | '. ( $unitprices ? '' . emt('Unit Price') . ' | '. @@ -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 %> - |