This commit was generated by cvs2svn to compensate for changes in r2523,
[freeside.git] / sql-ledger / templates / Brazilian_Portuguese-sales_order.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[latin1]{inputenc}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-2.0cm}
7 \setlength{\topmargin}{0cm}
8 \setlength{\headheight}{0.5cm}
9 \setlength{\headsep}{1cm}
10 \setlength{\topskip}{0pt}
11 \setlength{\oddsidemargin}{1.0cm}
12 \setlength{\evensidemargin}{1.0cm}
13 \setlength{\textwidth}{19.2cm}
14 \setlength{\textheight}{24.5cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
18 \begin{document}
19
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21
22 \newsavebox{\hdr}
23 \sbox{\hdr}{
24   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
25
26   \parbox{\textwidth}{
27     \parbox[b]{12cm}{
28       <%company%>
29       
30       <%address%>}\hfill
31     \begin{tabular}[b]{rr@{}}
32     Telefone & <%tel%>\\
33     Fax & <%fax%>
34     \end{tabular}
35
36     \rule[1.5ex]{\textwidth}{0.5pt}
37   }
38 }
39     
40 \fontfamily{cmss}\fontshape{n}\selectfont
41
42 \markboth{<%company%>\hfill <%ordnumber%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 <%pagebreak 90 27 48%>
48 \end{tabular*}
49
50   \rule{\textwidth}{2pt}
51   
52   \hfill
53   \begin{tabularx}{7cm}{Xr@{}}
54   \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55   \end{tabularx}
56
57 \newpage
58
59 \markright{<%company%>\hfill <%ordnumber%>}
60
61 \vspace*{-12pt}
62
63 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
65     \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
66   & carried forward from <%lastpage%> & & & & & <%sumcarriedforward%> \\
67 <%end pagebreak%>
68
69
70 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71
72 \vspace*{2cm}
73
74 <%name%>
75
76 <%addr1%>
77
78 <%addr2%>
79
80 <%addr3%>
81
82 <%addr4%>
83
84 \vspace{3.5cm}
85
86 \textbf{ORDEM DE VENDA} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
87 \hfill
88 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
89   \textbf{Data} & <%orddate%> \\
90   \textbf{Número} & <%ordnumber%>
91 \end{tabular}
92
93 \vspace{1cm}
94
95 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
96   \textbf{Número} & \textbf{Descrição} & \textbf{Quant.} &
97     \textbf{Unid.} & \textbf{Preço} & \textbf{Disc.} & \textbf{Total} \\
98 <%foreach number%>
99   <%number%> & <%description%> & <%qty%> &
100     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
101 <%end number%>
102 \end{tabular*}
103
104
105 \parbox{\textwidth}{
106 \rule{\textwidth}{2pt}
107
108 \vspace{0.2cm}
109
110 \hfill
111 \begin{tabularx}{7cm}{Xr@{}}
112   \textbf{Subtotal} & \textbf{<%subtotal%>} \\
113 <%foreach tax%>
114   <%taxdescription%> em <%taxbase%> & <%tax%>\\
115 <%end tax%>
116   \hline
117   \textbf{Total} & \textbf{<%ordtotal%>}\\
118 \end{tabularx}
119
120 \vspace{0.3cm}
121
122 \hfill
123   Preços em \textbf{<%currency%>}.
124
125 \vspace{12pt}
126
127 <%if notes%>
128   <%notes%>
129 <%end if%>
130
131 }
132
133
134 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
135
136 \end{document}
137