X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=e9b0bdf95d8dbcf9cc47f13738b35c37fa2d5573;hb=cf985eedaeb4b23a2050ebc0bb0cb304554e2a6d;hp=795242d5dcc66807fd52f72aefb48cc25ccfa4d4;hpb=5556814b7ff65b0a4837390be9331e1841189427;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 795242d5d..e9b0bdf95 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -14,7 +14,7 @@ .allcaps { text-transform:uppercase; font-size: 12pt } -
+
@@ -115,7 +115,7 @@ $OUT .= '

'; my $sectionhead; if ( $section->{'location'} ) { - $sectionhead .= $section->{'location'}{'label_prefix'}. ': '. + $sectionhead .= $section->{'location'}{'label_prefix'}. ': ' if length($section->{'location'}{'label_prefix'}); $sectionhead = $section->{'location'}{'address1'}; $sectionhead .= ', '.$section->{'location'}{'address2'} @@ -143,7 +143,7 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>

'. ''. ( $unitprices ? ''. @@ -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'};
'. + $OUT .= '' . emt('Description') . '' . emt('Unit Price') . '
'. - ( $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'}. '