diff options
| author | mark <mark> | 2011-09-16 00:15:48 +0000 | 
|---|---|---|
| committer | mark <mark> | 2011-09-16 00:15:48 +0000 | 
| commit | 9c866ccad0f187f29d21f12b93f15f2787aa9843 (patch) | |
| tree | f1a17825d748de59b6d578f5510ab2bb9e6a43bb /conf/invoice_html | |
| parent | 2e9b97a7492a06855cc55a65f4df7b14607a0db9 (diff) | |
invoice template and config localization, #12367
Diffstat (limited to 'conf/invoice_html')
| -rw-r--r-- | conf/invoice_html | 49 | 
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 date<BR> +              <%= emt('Invoice date') %><BR>                <B><%= $date %></B>              </td>              <td>              </td>              <td align="center"> -              Invoice #<BR> +              <%= emt('Invoice #') %><BR>                <B><%= $invnum %></B>              </td>              <td>              </td>              <td align="center"> -              Customer #<BR> +              <%= emt('Customer #') %><BR>                <B><%= $custnum %></B>              </td>            </tr>            <tr>              <th> </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> </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>';              }  | 
