summaryrefslogtreecommitdiff
path: root/conf/invoice_html
diff options
context:
space:
mode:
authormark <mark>2011-09-15 10:19:03 +0000
committermark <mark>2011-09-15 10:19:03 +0000
commit62b12e8b09608b7081ffd596be899fafb5c2403f (patch)
treeea185e690b709c5e66365f24e039c86b3404b12b /conf/invoice_html
parent43af0ec176ff2ad5c4ecd60a58145f8370cc39d7 (diff)
invoice template and config localization, #12367
Diffstat (limited to 'conf/invoice_html')
-rw-r--r--conf/invoice_html49
1 files changed, 22 insertions, 27 deletions
diff --git a/conf/invoice_html b/conf/invoice_html
index 289ada1da..1d53683ad 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 }
</STYLE>
<table class="invoice" bgcolor="#ffffff" WIDTH=625 CELLSPACING=8><tr><td>
@@ -23,26 +24,26 @@
<table CLASS="invoice_headerright" cellspacing=0>
<tr>
<td align="center">
- Invoice&nbsp;date<BR>
+ <%= emt('Invoice date') %><BR>
<B><%= $date %></B>
</td>
<td>
</td>
<td align="center">
- Invoice&nbsp;#<BR>
+ <%= emt('Invoice #') %><BR>
<B><%= $invnum %></B>
</td>
<td>
</td>
<td align="center">
- Customer&nbsp;#<BR>
+ <%= emt('Customer #') %><BR>
<B><%= $custnum %></B>
</td>
</tr>
<tr>
<th>&nbsp;</th>
- <th colspan=3 align="center">
- <FONT SIZE="+3"><%= $notice_name ? substr($notice_name, 0, 1) : 'I' %></FONT><FONT SIZE="+2"><%= $notice_name ? uc(substr($notice_name, 1)) : 'NVOICE' %></FONT>
+ <th colspan=3 align="center" class="allcaps">
+ <FONT SIZE="+3"><%= substr(emt($notice_name),0,1) %></FONT><FONT SIZE="+2"><%= substr(emt($notice_name),1) %></FONT>
</th>
<th>&nbsp;</th>
</tr>
@@ -64,7 +65,7 @@
%>
</td>
<%= $ship_enable ? ('<td align="left">'.
- join('<BR>',grep length($_), '<b>Service Address</b>',
+ join('<BR>',grep length($_), '<b>'.emt('Service Address').'</b>',
$ship_company,
$ship_address1,
$ship_address2,
@@ -86,7 +87,7 @@
$OUT .= qq! <img src="cust_bill-barcode.cgi?invnum=$invnum;template=$template"><br> !;
}
%>
- <%= $terms ? "Terms: $terms" : '' %><BR>
+ <%= $terms ? emt('Terms') . ": $terms" : '' %><BR>
<%= $po_line %>
</td>
</tr>
@@ -111,18 +112,13 @@
unless ($section->{'summarized'}) {
$OUT .= '</table>' if ( $notfirst || $section->{'pretotal'} && !$summary );
$OUT .= '<table><tr><td>';
- if ($section->{'description'}) {
- $OUT .=
- '<p><b><font size="+1">'. uc(substr($section->{'description'},0,1)).
- '</font><font size="+0">'. uc(substr($section->{'description'},1)).
+ my $sectionhead = $section->{'description'} || emt('Charges');
+ $OUT .=
+ '<p class="allcaps"><b><font size="+1">'. substr($sectionhead,0,1).
+ '</font><font size="+0">'. substr($sectionhead,1).
'</font></b>'.
- '<p>';
- }else{
- $OUT .=
- '<p><b><font size="+1">C</font><font size="+0">HARGES</font></b>'.
- '<p>';
- }
- $OUT .= '</td></tr></table>';
+ '<p>'.
+ '</td></tr></table>';
$OUT .=
'<table class="invoice_longtable" CELLSPACING=0 WIDTH="100%">'.
@@ -133,14 +129,13 @@
$OUT .= $header;
$columncount = scalar(my @array = split /<\/th><th/i, $header);
} else {
- $OUT .= '<th align="center">Ref</th>'.
- '<th align="left">Description</th>'.
- ( $unitprices
- ? '<th align="left">Unit Price</th>'.
- '<th align="left">Quantity</th>'
- : ''
- ).
- '<th align="right">Amount</th>';
+ $OUT .= '<th align="center">' . emt('Ref') . '</th>'.
+ '<th align="left">' . emt('Description') . '</th>'.
+ ( $unitprices
+ ? '<th align="left">' . emt('Unit Price') . '</th>'.
+ '<th align="left">' . emt('Quantity') . '</th>'
+ : '' ).
+ '<th align="right">' . emt('Amount') . '</th>';
}
$OUT .= '</tr>';
@@ -207,7 +202,7 @@
} else {
$OUT .= qq(<td align="left" style="$style").
( $unitprices ? ' colspan=3>' : '>' ).
- $section->{'description'}. ' Total </td>'.
+ $section->{'description'}. ' ' . emt('Total') . '</td>'.
qq(<td align="right" style="$style">).
$section->{'subtotal'}. '</td>';
}