import sql-ledger 2.4.4
[freeside.git] / sql-ledger / templates / Spanish_Letter-purchase_order.tex
1 \documentclass[letterpaper,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 \begin{minipage}[t]{0.6\linewidth}
29 \vspace{2.2cm}
30
31 \begin{tabular}[t]{p{1.7cm}p{2.4cm}p{1.7cm}}\\
32 \centering{Número} & \centering{Fecha} & C. Cliente\\
33 \centering{<%ordnumber%>} & \centering{<%orddate%>} & \centering{<%vendor_id%>}
34 \end{tabular}
35 \end{minipage}
36
37 \begin{minipage}[t]{0.4\linewidth}
38 \textbf{O R D E N \quad D E \quad C O M P R A} 
39 \vspace{1cm}
40
41 <%name%>
42
43 <%address1%>
44
45 <%if address2%>
46 <%address2%>
47 <%end address2%>
48
49 <%city%> <%state%> <%zipcode%>
50
51 <%if country%>
52 <%country%>
53 <%end country%>
54 \end{minipage}
55
56 }
57
58 \pagestyle{fancy}
59 \renewcommand{\headrulewidth}{0cm}
60 \renewcommand{\footrulewidth}{0cm}
61 \cfoot{\thepage}
62 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
63 %\thispagestyle{empty}     %use this with letterhead paper
64
65 <%pagebreak 90 27 37%>
66 \end{tabular*}
67 \newpage
68 \usebox{\hdr}
69 %\markboth{\usebox{\hdr}}{\usebox{\hdr}}
70 \vspace{0.5cm}
71
72 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
73   \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
74 <%end pagebreak%>
75
76 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
77
78 \usebox{\hdr}
79 \vspace{0.5cm}
80
81 \begin{tabular*}{\textwidth}{rp{\descrwidth}rr}
82   \textbf{Cant.} & \textbf{Descripción} & \textbf{Precio} & \textbf{Importe} \\ \hline
83 <%foreach number%>
84   <%qty%> & <%description%> & <%sellprice%> & <%linetotal%> \\
85 <%end number%>
86 \end{tabular*}
87
88 \parbox{\textwidth}{
89 \vspace{12pt}
90 <%if notes%>
91   <%notes%>
92 <%end if%>
93 }
94
95 \vfill
96
97 \begin{flushright}
98 \begin{tabularx}{10cm}{Xr@{}}
99   \textbf{Base imponible} & \textbf{<%subtotal%>} \\
100 <%foreach tax%>
101   IVA (<%taxrate%>\%) sobre <%taxbase%> & <%tax%> \\
102 <%end tax%>
103   \hline
104   \textbf{Total} & \textbf{<%ordtotal%>} \\
105 \end{tabularx}
106 \end{flushright}
107
108 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
109
110 \end{document}
111