X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=cd348274fd94f372fd369e2af926e0ec0fac863d;hp=289ada1da1dafe73d4535950ccba7239c626d5bd;hb=4fdaf2e78de5e32772af84b010de28656d8422fb;hpb=acab2d3793a1906adc905bccf9dc71d96f9eb096 diff --git a/conf/invoice_html b/conf/invoice_html index 289ada1da..cd348274f 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -11,6 +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 }
@@ -23,26 +24,26 @@ - @@ -64,7 +65,7 @@ %> <%= $ship_enable ? (' @@ -111,18 +112,13 @@ unless ($section->{'summarized'}) { $OUT .= '
- Invoice date
+ <%= emt('Invoice date') %>
<%= $date %>
- Invoice #
+ <%= emt('Invoice #') %>
<%= $invnum %>
- Customer #
+ <%= emt('Customer #') %>
<%= $custnum %>
  - <%= $notice_name ? substr($notice_name, 0, 1) : 'I' %><%= $notice_name ? uc(substr($notice_name, 1)) : 'NVOICE' %> + + <%= substr(emt($notice_name),0,1) %><%= substr(emt($notice_name),1) %>  
'. - join('
',grep length($_), 'Service Address', + join('
',grep length($_), ''.emt('Service Address').'', $ship_company, $ship_address1, $ship_address2, @@ -86,7 +87,7 @@ $OUT .= qq!
!; } %> - <%= $terms ? "Terms: $terms" : '' %>
+ <%= $terms ? emt('Terms') . ": $terms" : '' %>
<%= $po_line %>
' if ( $notfirst || $section->{'pretotal'} && !$summary ); $OUT .= '
'; - if ($section->{'description'}) { - $OUT .= - '

'. uc(substr($section->{'description'},0,1)). - ''. uc(substr($section->{'description'},1)). + my $sectionhead = $section->{'description'} || emt('Charges'); + $OUT .= + '

'. substr($sectionhead,0,1). + ''. substr($sectionhead,1). ''. - '

'; - }else{ - $OUT .= - '

CHARGES'. - '

'; - } - $OUT .= '

'; + '

'. + '

'; $OUT .= ''. @@ -133,14 +129,13 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>'. - ( $unitprices - ? ''. - '' - : '' - ). - ''; + $OUT .= ''. + ''. + ( $unitprices + ? ''. + '' + : '' ). + ''; } $OUT .= ''; @@ -163,8 +158,8 @@ ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. ''. ( $unitprices - ? ''. - '' + ? ''. + '' : '' ). @@ -196,7 +191,7 @@ } - if ($section->{'description'} || $multisection) { + if ($section->{'description'} || $multisection and !$section->{no_subtotal}) { my $style = 'border-top: 3px solid #000000;'. 'border-bottom: 3px solid #000000;'; $OUT .= @@ -207,7 +202,7 @@ } else { $OUT .= qq('. + $section->{'description'}. ' ' . emt('Total') . ''. qq('; }
DescriptionUnit PriceQuantityAmount' . emt('Ref') . '' . emt('Description') . '' . emt('Unit Price') . '' . emt('Quantity') . '' . emt('Amount') . '
'. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. '' : '>' ). - $section->{'description'}. ' Total ). $section->{'subtotal'}. '