X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=bd99899e0b7b5b686e82e6201e7970f46dfd4065;hb=d4b8e45c3589f3c6489442798f5fba439d5a29c9;hp=509bf950d2ee91a39078aef040ce919c4d3ce076;hpb=1d04b2131e859c31a89a299e9fdfdfa39e200e03;p=freeside.git 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'};