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