pagebreak-Mechanismus entfernen
[kivitendo-erp.git] / templates / print / Default / purchase_order.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[utf8]{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     Telephone & <%tel%>\\
33     Facsimile & <%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 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
48
49 \vspace*{0.5cm}
50
51 \parbox[t]{1cm}{\hfill}
52 \parbox[t]{10.5cm}{
53 \textbf{To}
54 \vspace{0.5cm}
55
56 <%name%>
57
58 <%street%>
59
60 <%zipcode%>
61
62 <%city%>
63
64 <%country%>
65
66 \vspace{0.3cm}
67
68 <%if contact%>
69 Attn: <%contact%>
70 \vspace{0.3cm}
71 <%end contact%>
72
73 <%if vendorphone%>
74 Tel: <%vendorphone%>
75 <%end vendorphone%>
76
77 <%if vendorfax%>
78 Fax: <%vendorfax%>
79 <%end vendorfax%>
80
81 <%email%>
82 }
83 \parbox[t]{7.5cm}{
84 \textbf{Ship To}
85 \vspace{0.5cm}
86
87 <%shiptoname%>
88
89 <%shiptostreet%>
90
91 <%shiptozipcode%>
92
93 <%shiptocity%>
94
95 <%shiptocountry%>
96
97 \vspace{0.3cm}
98
99 <%if shiptocontact%>
100 Attn: <%shiptocontact%>
101 \vspace{0.3cm}
102 <%end shiptocontact%>
103
104 <%if shiptophone%>
105 Tel: <%shiptophone%>
106 <%end shiptophone%>
107
108 <%if shiptofax%>
109 Fax: <%shiptofax%>
110 <%end shiptofax%>
111
112 <%shiptoemail%>
113 }
114 \hfill
115
116 \vspace{1cm}
117
118 \textbf{P U R C H A S E} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
119 \hfill
120 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
121   \textbf{Date} & <%orddate%> \\
122 <%if reqdate%>
123   \textbf{Required by} & <%reqdate%> \\
124 <%end reqdate%>
125   \textbf{Number} & <%ordnumber%>
126 \end{tabular}
127
128 \vspace{1cm}
129
130 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrr@{}}
131   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
132     \textbf{Unit} & \textbf{Price} & \textbf{Amount} \\
133 <%foreach number%>
134   <%number%> & <%description%> & <%qty%> &
135     <%unit%> & <%sellprice%> & <%linetotal%> \\
136 <%end number%>
137 \end{tabular*}
138
139
140 \parbox{\textwidth}{
141 \rule{\textwidth}{2pt}
142
143 \vspace{0.2cm}
144
145 \hfill
146 \begin{tabularx}{7cm}{Xr@{}}
147   \textbf{Subtotal} & \textbf{<%subtotal%>} \\
148 <%foreach tax%>
149   <%taxdescription%> on <%taxbase%> & <%tax%>\\
150 <%end tax%>
151   \hline
152   \textbf{Total} & \textbf{<%ordtotal%>}\\
153 \end{tabularx}
154
155 \vspace{0.3cm}
156
157 \hfill
158   All prices in \textbf{<%currency%>} funds.
159
160 \vspace{12pt}
161
162 <%if notes%>
163   <%notes%>
164 <%end if%>
165
166 }
167
168
169 %\renewcommand{\thefootnote}{\fnsymbol{footnote}}
170
171 %\footnotetext[1]{\tiny }
172
173 \end{document}
174
175