X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=ae17da3db7681f5d60bb4b7dac6104a6e0e6def3;hb=be70eef1b245f372d22fee1800b81990f2842a77;hp=509bf950d2ee91a39078aef040ce919c4d3ce076;hpb=3e7b9c1a8ddbe9aabba470fc02041ad631cd9b8a;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 509bf950d..ae17da3db 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -14,7 +14,7 @@ .allcaps { text-transform:uppercase; font-size: 12pt } -
+
@@ -161,23 +161,28 @@ ) } @detail_items ) { - $OUT .= - '{description_generator}}($line); } else { - $OUT .= ( ($line->{'ref'} && $line->{'ref'} ne $lastref) ? '' : '_more' ). - '">'. - ''. - ''. - ( $unitprices - ? ''. - '' - : '' - ). - - ''; + 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 ( $unitprices ) { + $OUT .= + ''. + ''; + } + $OUT .= ''; } $OUT .= ''; $lastref = $line->{'ref'};
'. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'; + if ( $line->{'ref'} ne $lastref ) { + $OUT .= $line->{'ref'}; + } + $OUT .= ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '