f505182669d765443d8414b04590f1d9d71889c2
[kivitendo-erp.git] / templates / print / Standard / pick_list.tex
1 % pick_list.tex
2 % Sammelliste Verkauf
3 % Überarbeitet von Norbert Simon, n.simon@linet-services.de
4 % Version 2.5 vom 16.Oktober 2011
5 % Basiert auf der Arbeit von kmk@lilalaser.de / 2007
6 % Diese Vorlage steht unter der GPL-Lizenz, Version 3
7 % siehe http://www.gnu.de/licenses/gpl-3.0.html
8 % ----------
9 % config: tag-style=$( )$
10 % ----------
11
12 \documentclass[twoside]{scrartcl}
13 \usepackage[frame]{xy}
14 \usepackage{tabularx}
15 \usepackage[utf8]{inputenc}
16 \usepackage{graphicx}
17 \setlength{\voffset}{0.5cm}
18 \setlength{\hoffset}{-2.0cm}
19 \setlength{\topmargin}{0cm}
20 \setlength{\headheight}{0.5cm}
21 \setlength{\headsep}{1cm}
22 \setlength{\topskip}{0pt}
23 \setlength{\oddsidemargin}{1.0cm}
24 \setlength{\evensidemargin}{1.0cm}
25 \setlength{\textwidth}{17cm}
26 \setlength{\textheight}{24.7cm}
27 \setlength{\footskip}{1cm}
28 \setlength{\parindent}{0pt}
29 \renewcommand{\baselinestretch}{1}
30
31 \begin{document}
32
33 \newlength{\descrwidth}\setlength{\descrwidth}{9cm}
34 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
35
36 \pagestyle{myheadings}
37 \thispagestyle{empty}
38
39 \vspace*{-1.3cm}
40
41 \parbox{\textwidth}{
42   \parbox[b]{.42\textwidth}{
43     $(company)$
44
45     $(address)$
46   }\hfill
47   \begin{tabular}[b]{rr@{}}
48   Tel & $(tel)$\\
49   Fax & $(fax)$
50   \end{tabular}
51
52   \rule[1.5ex]{\textwidth}{0.5pt}
53 }
54
55
56 %$(pagebreak 90 27 37)$
57 %\end{tabular*}
58
59 %\newpage
60
61 \markboth{$(company)$\hfill $(ordnumber)$}{$(company)$\hfill $(ordnumber)$}
62
63 \vspace*{-12pt}
64
65 %\begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rcll@{}}
66 %  \textbf{Pos} & \textbf{Nummer} & \textbf{Beschreibung} &
67 %  \textbf{Menge} & \textbf{Lagerausgang} & & \textbf{Lagerplatz} \\
68 %$(end pagebreak)$
69
70
71 \vspace*{0.5cm}
72
73 \parbox[t]{1cm}{\hfill}
74 \parbox[t]{.5\textwidth}{
75   \textbf{Lieferanschrift}
76 } \hfill
77
78 \vspace{0.7cm}
79
80 \parbox[t]{1cm}{\hfill}
81 \parbox[t]{.5\textwidth}{
82
83 $(shiptoname)$ \\
84 $(shiptostreet)$ \\
85 $(shiptozipcode)$ \\
86 $(shiptocity)$ \\
87 $(shiptocountry)$
88 }
89 \parbox[t]{.4\textwidth}{
90   $(shiptocontact)$
91
92   $(if shiptophone)$
93   Tel: $(shiptophone)$
94   $(end shiptophone)$
95
96   $(if shiptofax)$
97   Fax: $(shiptofax)$
98   $(end shiptofax)$
99
100   $(shiptoemail)$
101 }
102 \hfill
103
104 \vspace{1cm}
105
106 \textbf{S A M M E L L I S T E}
107 \hfill
108
109 \vspace{1cm}
110 \typeout{hier?}
111 \begin{tabularx}{\textwidth}{*{6}{|X}|} \hline
112   \textbf{BestellNr. \#} &
113   \textbf{Datum} &
114   \textbf{Kontakt} &
115   $(if warehouse)$ \textbf{Lager} & $(end warehouse)$
116   \textbf{Lagerplatz} &
117   \textbf{Lieferung mit} \\ [0.5em]
118   \hline
119         $(ordnumber)$ &
120         $(if shippingdate)$ $(shippingdate)$ &$(end shippingdate)$
121         $(if not shippingdate)$ $(orddate)$ &$(end shippingdate)$
122         $(employee)$ &
123         $(if warehouse)$ $(warehouse)$ &$(end warehouse)$
124         $(shippingpoint)$ &
125         $(shipvia)$ \\
126   \hline
127 \end{tabularx}
128
129 \vspace{1cm}
130
131 %\begin{tabular*}{\textwidth}{@{}rlp{\descrwidth}@{\extracolsep\fill}rcll@{}}
132 \setlength{\tabcolsep}{0mm}
133 \begin{tabularx}{\textwidth}{p{1.5cm}p{6cm}p{2cm}p{2cm}p{4cm}p{1.5cm}}
134   \textbf{Art-Nr} &
135   \textbf{Beschreibung} &
136   \textbf{Serien-Nr} &
137   \textbf{Menge} &
138   \textbf{Lager} &
139   \textbf{Lagerplatz} \\
140 $(foreach number)$
141  $(if si_qty)$
142   $(foreach si_number)$
143    $(si_number)$ &
144    $(si_description)$ &
145    $(si_chargenumber)$ &
146    \hfill $(si_qty)$ $(si_unit)$ &
147    $(si_warehouse)$ &
148    $(si_bin)$\\[1em]
149   $(end si_number)$
150  $(else)$
151   $(number)$ &
152   $(description)$ &
153   &
154   \hfill $(qty)$ $(unit)$ &
155   & \\[1em]
156  $(end si_qty)$
157 $(end number)$
158 \end{tabularx}
159
160 \parbox{\textwidth}{
161 \rule{\textwidth}{2pt}
162 }
163
164 \end{document}