Dateiencodings auf UTF-8 geƤndert
[kivitendo-erp.git] / templates / Default-invoice.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 <%invnumber%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 <%pagebreak 90 27 37%>
48 \end{tabular*}
49
50   \rule{\textwidth}{2pt}
51   
52   \hfill
53   \begin{tabularx}{7cm}{Xr@{}}
54   \textbf{Subtotal} & \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{Number} & \textbf{Description} & \textbf{Qt'y} &
65     \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
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{To}
77   \vspace{0.5cm}
78
79 <%name%>
80
81 <%street%>
82
83 <%zipcode%>
84
85 <%city%>
86
87 <%country%>
88
89 \vspace{0.3cm}
90
91 %<%if contact%>
92 %Attn: <%contact%>
93 %\vspace{0.3cm}
94 %<%end contact%>
95 \vspace{0.5cm}
96
97 <%if customerphone%>
98 Tel: <%customerphone%>
99 <%end customerphone%>
100
101 <%if customerfax%>
102 Fax: <%customerfax%>
103 <%end customerfax%>
104
105 <%email%>
106 }
107 \parbox[t]{7.5cm}{
108 \textbf{Ship To}
109 \vspace{0.5cm}
110
111 <%shiptoname%>
112
113 <%shiptostreet%>
114
115 <%shiptozipcode%>
116
117 <%shiptocity%>
118
119 <%shiptocountry%>
120
121 \vspace{0.3cm}
122
123 \vspace{0.3cm}
124
125 <%if shiptocontact%>
126 Attn: <%shiptocontact%>
127 \vspace{0.3cm}
128 <%end shiptocontact%>
129
130 <%if shiptophone%>
131 Tel: <%shiptophone%>
132 <%end shiptophone%>
133
134 <%if shiptofax%>
135 Fax: <%shiptofax%>
136 <%end shiptofax%>
137
138 <%shiptoemail%>
139 }
140 \hfill
141
142 \vspace{1cm}
143
144 \textbf{I N V O I C E}
145 \hfill
146
147 \vspace{1cm}
148
149 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
150   \textbf{Date} & <%invdate%> \\
151   \textbf{Number} & <%invnumber%> \\
152   \textbf{Order} & <%ordnumber%> \\
153   \textbf{Clerk} & <%employee%>
154 \end{tabular}
155
156 \vspace{1cm}
157
158 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
159   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
160     \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
161 <%foreach number%>
162   <%number%> & <%description%> & <%qty%> &
163     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
164 <%end number%>
165 \end{tabular*}
166
167
168 \parbox{\textwidth}{
169 \rule{\textwidth}{2pt}
170
171 \vspace{0.2cm}
172
173 \hfill
174 \begin{tabularx}{7cm}{Xr@{}}
175   \textbf{Subtotal} & \textbf{<%subtotal%>} \\
176 <%foreach tax%>
177   <%taxdescription%> on <%taxbase%> & <%tax%> \\
178 <%end tax%>
179 <%if paid%>
180   \textbf{Paid} & - <%paid%> \\
181 <%end paid%>
182   \hline
183   \textbf{Balance Owing} & \textbf{<%total%>} \\
184 \end{tabularx}
185
186 \vspace{0.3cm}
187
188 \hfill
189   All prices in \textbf{<%currency%>} funds.
190
191 \vspace{12pt}
192
193 <%if notes%>
194   <%notes%>
195 <%end if%>
196
197 }
198
199 \vfill
200
201 <%if paid%>
202 \begin{tabularx}{10cm}{@{}lXlr@{}}
203   \textbf{Payments} & & & \\
204   \hline
205   \textbf{Date} & \textbf{Account} & \textbf{Source} & \textbf{Amount} \\
206 <%end paid%>
207 <%foreach payment%>
208   <%paymentdate%> & <%paymentaccount%> & <%paymentsource%> & <%payment%> \\
209 <%end payment%>
210 <%if paid%>
211 \end{tabularx}
212 <%end paid%>
213
214 \vspace{1cm}
215
216 \centerline{\textbf{Thank You for your valued business!}}
217
218 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
219
220 \footnotetext[1]{\tiny
221 Payment due NET <%terms%> Days from date of Invoice. Interest on overdue
222 amounts will acrue at the rate of 1.5\% per month starting <%duedate%>
223 until paid in full. Items returned are subject to a 10\% restocking charge.
224 A return authorization must be obtained from <%company%> before goods are
225 returned. Returns must be shipped prepaid and properly insured.
226 <%company%> will not be responsible for damages during transit.}
227
228 \end{document}
229
230
231