X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;fp=conf%2Finvoice_html;h=bd99899e0b7b5b686e82e6201e7970f46dfd4065;hp=509bf950d2ee91a39078aef040ce919c4d3ce076;hb=014e2c547f63bcd283eac4d0210a7976ca5fcb90;hpb=a07ca8e4ca980b88a4d6a8f85b4f72c459599e0a diff --git a/conf/invoice_html b/conf/invoice_html index 509bf950d..bd99899e0 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -161,23 +161,28 @@ ) } @detail_items ) { - $OUT .= - '{description_generator}}($line); } else { - $OUT .= ( ($line->{'ref'} && $line->{'ref'} ne $lastref) ? '' : '_more' ). - '">'. - ''. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. - ''. $line->{'description'}. ''. - ( $unitprices - ? ''. $line->{'unit_amount'}. ''. - ''. $line->{'quantity'}. '' - : '' - ). - - ''. $line->{'amount'}. ''; + my $class = 'invoice_desc_more'; + if ( $line->{'ref'} and $line->{'ref'} ne $lastref ) { + # then it's a new package (not a continuation) + $class = 'invoice_desc'; + } + $OUT .= ' + '; + if ( $line->{'ref'} ne $lastref ) { + $OUT .= $line->{'ref'}; + } + $OUT .= ' + '. $line->{'description'}. ''; + if ( $unitprices ) { + $OUT .= + ''. $line->{'unit_amount'}. ''. + ''. $line->{'quantity'}. ''; + } + $OUT .= ''. $line->{'amount'}. ''; } $OUT .= ''; $lastref = $line->{'ref'};