import sql-ledger 2.4.4
[freeside.git] / sql-ledger / templates / Italian-invoice.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 <%invnumber%>}{\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{Totale riga} & \textbf{<%sumcarriedforward%>} \\
55   \end{tabularx}
56
57 \newpage
58
59 \markright{<%company%>\hfill <%invnumber%>}
60
61 \vspace*{-12pt}
62
63 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64   \textbf{Codice} & \textbf{Descrizione} & \textbf{Quantita'} &
65     \textbf{Unita'} & \textbf{Prezzo} & \textbf{Sc.} & \textbf{Totale righe} \\
66   & carried forward from page <%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{Sede legale:}
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 \vspace{0.5cm}
100
101 <%if customerphone%>
102 Telefono: <%customerphone%>
103 <%end customerphone%>
104
105 <%if customerfax%>
106 Fax: <%customerfax%>
107 <%end customerfax%>
108
109 <%email%>
110 }
111 \parbox[t]{7.5cm}{
112 \textbf{Inviare fatttura a:}
113 \vspace{0.5cm}
114
115 <%shiptoname%>
116
117 <%shiptoaddress1%>
118
119 <%if shiptoaddress2%>
120 <%shiptoaddress2%>
121 <%end shiptoaddress2%>
122
123 <%shiptocity%> <%shiptostate%> <%shiptozipcode%>
124
125 <%if shiptocountry%>
126 <%shiptocountry%>
127 <%end shiptocountry%>
128
129 \vspace{0.3cm}
130
131 \vspace{0.3cm}
132
133 <%if shiptocontact%>
134 Attn: <%shiptocontact%>
135 \vspace{0.3cm}
136 <%end shiptocontact%>
137
138 <%if shiptophone%>
139 Tel: <%shiptophone%>
140 <%end shiptophone%>
141
142 <%if shiptofax%>
143 Fax: <%shiptofax%>
144 <%end shiptofax%>
145
146 <%shiptoemail%>
147 }
148 \hfill
149
150 \vspace{1cm}
151
152 \textbf{FATTURA}
153 \hfill
154
155 \vspace{1cm}
156
157 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
158   \textbf{Data fattura} & <%invdate%> \\
159   \textbf{Numero fattura} & <%invnumber%> \\
160   \textbf{Ordine} & <%ordnumber%>
161 \end{tabular}
162
163 \vspace{1cm}
164
165 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
166   \textbf{Codice} & \textbf{Descrizione} & \textbf{Qt\`a} &
167     \textbf{Un.} & \textbf{Prezzo} & \textbf{Sc.} & \textbf{Tot. riga} \\
168 <%foreach number%>
169   <%number%> & <%description%> & <%qty%> &
170     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
171 <%end number%>
172 \end{tabular*}
173
174
175 \parbox{\textwidth}{
176 \rule{\textwidth}{2pt}
177
178 \vspace{0.2cm}
179
180 \hfill
181 \begin{tabularx}{7cm}{Xr@{}}
182   \textbf{Totale righe} & \textbf{<%subtotal%>} \\
183 <%foreach tax%>
184   <%taxdescription%>: <%taxrate%>\% & <%tax%>\\
185 <%end tax%>
186 <%if paid%>
187   \textbf{Pagato} & - <%paid%> \\
188 <%end paid%>
189   \hline
190   \textbf{Totale da pagare} & \textbf{<%total%>} \\
191 \end{tabularx}
192
193 \vspace{0.3cm}
194
195 \hfill
196   Tutti i prezzi sono espressi in valuta \textbf{<%currency%>}.
197
198 \vspace{12pt}
199
200 <%if notes%>
201   <%notes%>
202 <%end if%>
203
204 }
205
206 \vfill
207
208 <%if paid%>
209 \begin{tabularx}{10cm}{@{}lXlr@{}}
210   \textbf{Pagamenti} & & & \\
211   \hline
212   \textbf{Data} & \textbf{Conto} & \textbf{Documento di riferimento} & \textbf{Importo} \\
213 <%end paid%>
214 <%foreach payment%>
215   <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
216 <%end payment%>
217 <%if paid%>
218 \end{tabularx}
219 <%end paid%>
220
221 \vspace{1cm}
222
223 %\centerline{\textbf{Grazie per averci scelto!}}
224
225 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
226
227 \footnotetext[1]{\tiny
228 Per i pagamenti successivi alla scadenza della fattura sara'
229 addebitato l'interesse legale, aumentato di due punti percentuali, fino al
230 pagamento completo.
231 }
232
233 \end{document}
234
235
236