X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=ae17da3db7681f5d60bb4b7dac6104a6e0e6def3;hb=89f9957267f05520fc676c378694383d16eedeb1;hp=35de6cf09cd1dc213664c761c1539a75967ce664;hpb=55753aaf5b1189c06a99fe5e0791fc33316df06f;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 35de6cf09..ae17da3db 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -14,7 +14,7 @@ .allcaps { text-transform:uppercase; font-size: 12pt } -
+
@@ -115,6 +115,8 @@ $OUT .= '

'; my $sectionhead; if ( $section->{'location'} ) { + $sectionhead .= $section->{'location'}{'label_prefix'}. ': ' + if length($section->{'location'}{'label_prefix'}); $sectionhead = $section->{'location'}{'address1'}; $sectionhead .= ', '.$section->{'location'}{'address2'} if length($section->{'location'}{'address2'}); @@ -159,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'}. '