X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=509bf950d2ee91a39078aef040ce919c4d3ce076;hb=1d04b2131e859c31a89a299e9fdfdfa39e200e03;hp=567385b06bc210e53dcd25f742fb202f569cc5c5;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 567385b06..509bf950d 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -11,7 +11,7 @@ .invoice_desc_more TD { font-weight: bold; font-size: 10pt } .invoice_extdesc TD { font-size: 8pt } .invoice_totaldesc TD { font-size: 10pt; empty-cells: show } -.allcaps { text-transform:uppercase } +.allcaps { text-transform:uppercase; font-size: 12pt }
@@ -112,13 +112,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 .= ''. @@ -132,8 +146,8 @@ $OUT .= ''. ''. ( $unitprices - ? ''. - '' + ? ''. + '' : '' ). ''; } @@ -158,8 +172,8 @@ ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. ''. ( $unitprices - ? ''. - '' + ? ''. + '' : '' ).
' . emt('Ref') . '' . emt('Description') . '' . emt('Unit Price') . '' . emt('Quantity') . '' . emt('Unit Price') . '' . emt('Quantity') . '' . emt('Amount') . ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. '