Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[kivitendo-erp.git] / templates / print / Default / sales_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*{2cm}
50
51 <%name%>
52
53 <%street%>
54
55 <%zipcode%>
56
57 <%city%>
58
59 <%country%>
60
61 \vspace{3.5cm}
62
63 \textbf{S A L E S} \parbox{0.3cm}{\hfill} \textbf{O R D E R}
64 \hfill
65 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
66   \textbf{Order Date} & <%orddate%> \\
67 <%if reqdate%>
68   \textbf{Required by} & <%reqdate%> \\
69 <%end reqdate%>
70   \textbf{Number} & <%ordnumber%>
71 \end{tabular}
72
73 \vspace{1cm}
74
75 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
76   \textbf{Number} & \textbf{Description} & \textbf{Qt'y} &
77     \textbf{Unit} & \textbf{Price} & \textbf{Disc} & \textbf{Amount} \\
78 <%foreach number%>
79   <%number%> & <%description%> & <%qty%> &
80     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
81 <%end number%>
82 \end{tabular*}
83
84
85 \parbox{\textwidth}{
86 \rule{\textwidth}{2pt}
87
88 \vspace{0.2cm}
89
90 \hfill
91 \begin{tabularx}{7cm}{Xr@{}}
92   \textbf{Subtotal} & \textbf{<%subtotal%>} \\
93 <%foreach tax%>
94   <%taxdescription%> on <%taxbase%> & <%tax%>\\
95 <%end tax%>
96   \hline
97   \textbf{Total} & \textbf{<%ordtotal%>}\\
98 \end{tabularx}
99
100 \vspace{0.3cm}
101
102 \hfill
103   All prices in \textbf{<%currency%>} funds.
104
105 \vspace{12pt}
106
107 <%if notes%>
108   <%notes%>
109 <%end if%>
110
111 }
112
113
114 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
115
116 \footnotetext[1]{\tiny
117 A 10\% order cancellation fee will be applied for any special order products or
118 products that have been customized, enhanced or upgraded at customers request.
119 Items which are non-returnable are indicated above.
120 }
121
122 \end{document}
123