X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=dfd87c79b9c645c4a3014f30eefa82ad16c06f04;hp=cd348274fd94f372fd369e2af926e0ec0fac863d;hb=4ff12dc7e14232390daca2f14a278cde46a8e573;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125 diff --git a/conf/invoice_html b/conf/invoice_html index cd348274f..dfd87c79b 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -1,6 +1,18 @@ -
+
+ +
+ <%= $watermark %> +
@@ -112,13 +145,27 @@ unless ($section->{'summarized'}) { $OUT .= '
' if ( $notfirst || $section->{'pretotal'} && !$summary ); $OUT .= '
'; - my $sectionhead = $section->{'description'} || emt('Charges'); - $OUT .= - '

'. substr($sectionhead,0,1). + $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'}); + $sectionhead .= ', ' . + $section->{'location'}{'city'} . ', ' . + $section->{'location'}{'state'} . ' ' . + $section->{'location'}{'zip'}; + $OUT .= $sectionhead; + } else { + $sectionhead = $section->{'description'} || emt('Charges'); + $OUT .= ''. substr($sectionhead,0,1). ''. substr($sectionhead,1). - ''. - '

'. - '

'; + + ''; + } + $OUT .= '

'; $OUT .= ''. @@ -129,7 +176,7 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>'. ''. ( $unitprices ? ''. @@ -147,26 +194,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'} || 0) ne $lastref ) { + # then it's a new package (not a continuation) + $class = 'invoice_desc'; + } + $OUT .= ' + + '; + if ( $unitprices ) { + $OUT .= + ''. + ''; + } + $OUT .= ''; } $OUT .= ''; - $lastref = $line->{'ref'}; + $lastref = $line->{'ref'} || 0; if ( @{$line->{'ext_description'} } ) { unless ( $section->{description_generator} ) { $OUT .= '

><%= $footer %> -

'. + $OUT .= '' . emt('Description') . '' . emt('Unit Price') . '
'. - ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'; + $OUT .= ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
+