This commit was generated by cvs2svn to compensate for changes in r2523,
[freeside.git] / sql-ledger / templates / Spanish_A4-invoice.tex
1 \documentclass[a4paper,oneside]{article}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[latin1]{inputenc}
5 \usepackage{marvosym}  % Euro \EUR
6 \usepackage{fancyhdr}
7 \setlength{\topmargin}{0cm}
8 \setlength{\topskip}{0cm}
9 \setlength{\headheight}{0cm}
10 \setlength{\headsep}{0.5cm}
11 \setlength{\textheight}{24.2cm}
12 \setlength{\textwidth}{19cm}
13 \setlength{\oddsidemargin}{-1.4cm}
14 \setlength{\evensidemargin}{-1.4cm}
15 \setlength{\footskip}{1cm}
16
17 \setlength{\parindent}{0pt}
18 \renewcommand{\baselinestretch}{1}
19 \begin{document}
20
21 \newlength{\descrwidth}\setlength{\descrwidth}{13.0cm}
22
23 \newsavebox{\hdr}
24
25 \fontfamily{cmss}\fontshape{n}\selectfont
26
27 \sbox{\hdr}{
28
29 \begin{minipage}[t]{0.6\linewidth}
30 \vspace{2.2cm}
31
32 \begin{tabular}[t]{p{1.7cm}p{2.4cm}p{1.7cm}}\\
33 \centering{Número} & \centering{Fecha} & C. Cliente\\
34 \centering{<%invnumber%>} & \centering{<%invdate%>} & \centering{<%customer_id%>}
35 \end{tabular}
36 \end{minipage}
37
38 \begin{minipage}[t]{0.4\linewidth}
39 \textbf{F A C T U R A} 
40 \vspace{1cm}
41
42 <%shiptoname%>
43
44 <%shiptoaddr1%>
45
46 <%shiptoaddr2%>
47
48 <%shiptoaddr3%>
49
50 <%shiptoaddr4%>
51 \end{minipage}
52
53 }
54
55 \pagestyle{fancy}
56 \renewcommand{\headrulewidth}{0cm}
57 \renewcommand{\footrulewidth}{0cm}
58 \cfoot{\thepage}
59 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
60 %\thispagestyle{empty}     %use this with letterhead paper
61
62 <%pagebreak 90 27 48%>
63 \end{tabular*}
64 \newpage
65 \usebox{\hdr}
66 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
67 \vspace{0.5cm}
68
69 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
70   \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
71 <%end pagebreak%>
72
73 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
74
75 \usebox{\hdr}
76 \vspace{0.5cm}
77
78 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
79   \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
80 <%foreach number%>
81   <%qty%> & <%description%> & <%sellprice%> & <%linetotal%> \\
82 <%end number%>
83 \end{tabular*}
84
85 \parbox{\textwidth}{
86 \vspace{12pt}
87 <%if notes%>
88   <%notes%>
89 <%end if%>
90 }
91
92 \vfill
93
94 \begin{flushright}
95 \begin{tabularx}{10cm}{Xr@{}}
96   \textbf{Base imponible} & \textbf{<%subtotal%>} \EUR \\
97 <%foreach tax%>
98   IVA (<%taxrate%>\%) sobre <%taxbase%> & <%tax%> \EUR\\
99 <%end tax%>
100   \hline
101   \textbf{Total} & \textbf{<%invtotal%>} \EUR\\
102 \end{tabularx}
103 \end{flushright}
104
105 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
106
107 \end{document}
108