import sql-ledger 2.4.4
[freeside.git] / sql-ledger / templates / Italian-purchase_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}{18cm}
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     Tel & <%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{Subtotale} & \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}rlrr@{}}
64   \textbf{Numero} & \textbf{Descrizione} & \textbf{Quantita'} &
65     \textbf{Unita'} & \textbf{Prezzo} & \textbf{Subtotale} \\
66   & carried forward from <%lastpage%> & & & & <%sumcarriedforward%> \\
67 <%end pagebreak%>
68
69
70 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71
72 \vspace*{0.5cm}
73
74 \parbox[t]{1cm}{\hfill}
75 \parbox[t]{10.5cm}{
76 \textbf{Ordinare a:}
77 \vspace{0.5cm}
78
79 <%name%>
80
81 <%address1%>
82
83 <%if address2%>
84 <%address2%>
85 <%end address2%>
86
87 <%city%> <%state%> <%zipcode%>
88
89 <%if country%>
90 <%country%>
91 <%end country%>
92
93 \vspace{0.3cm}
94
95 <%if contact%>
96 Attn: <%contact%>
97 \vspace{0.3cm}
98 <%end contact%>
99
100 <%if vendorphone%>
101 Tel: <%vendorphone%>
102 <%end vendorphone%>
103
104 <%if vendorfax%>
105 Fax: <%vendorfax%>
106 <%end vendorfax%>
107
108 <%email%>
109 }
110 \parbox[t]{7.5cm}{
111 \textbf{Spedire la merce a:}
112 \vspace{0.3cm}
113
114 <%shiptoname%>
115
116 <%shiptoaddress1%>
117
118 <%if shiptoaddress2%>
119 <%shiptoaddress2%>
120 <%end shiptoaddress2%>
121
122 <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
123
124 <%if shiptocountry%>
125 <%shiptocountry%>
126 <%end shiptocountry%>
127
128 \vspace{0.3cm}
129
130 <%if shiptocontact%>
131 Attn: <%shiptocontact%>
132 \vspace{0.3cm}
133 <%end shiptocontact%>
134
135 <%if shiptophone%>
136 Tel: <%shiptophone%>
137 <%end shiptophone%>
138
139 <%if shiptofax%>
140 Fax: <%shiptofax%>
141 <%end shiptofax%>
142
143 <%shiptoemail%>
144 }
145 \hfill
146
147 \vspace{1cm}
148
149 \textbf{ORDINE DI ACQUISTO}
150 \hfill
151 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
152   \textbf{Data} & <%orddate%> \\
153 <%if reqdate%>
154   \textbf{Consegna} & <%reqdate%> \\
155 <%end reqdate%>
156   \textbf{Ordine numero} & <%ordnumber%>
157 \end{tabular}
158
159 \vspace{1cm}
160
161 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
162   \textbf{Codice} & \textbf{Descrizione} & \textbf{Quantit\`a} &
163     \textbf{Unit\`a} & \textbf{Prezzo} & \textbf{Totale riga} \\
164 <%foreach number%>
165   <%number%> & <%description%> & <%qty%> &
166     <%unit%> & <%sellprice%> & <%linetotal%> \\
167 <%end number%>
168 \end{tabular*}
169
170
171 \parbox{\textwidth}{
172 \rule{\textwidth}{2pt}
173
174 \vspace{0.2cm}
175
176 \hfill
177 \begin{tabularx}{10cm}{Xr@{}}
178   \textbf{Totale righe} & \textbf{<%subtotal%>} \\
179 <%foreach tax%>
180   <%taxdescription%>: <%taxrate%>\% su <%taxbase%> & <%tax%>\\
181 <%end tax%>
182   \hline
183   \textbf{Totale ordine} & \textbf{<%ordtotal%>}\\
184 \end{tabularx}
185
186 \vspace{0.3cm}
187
188 \hfill
189   Tutti i prezzi sono espressi in valuta \textbf{<%currency%>}.
190
191 \vspace{12pt}
192
193 <%if notes%>
194   <%notes%>
195 <%end if%>
196
197 }
198
199
200 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
201
202 %\footnotetext[1]{\tiny }
203
204 \end{document}
205
206