MT940-Import: AQBanking-Unterstützung entfernt
[kivitendo-erp.git] / templates / print / marei / sales_delivery_order.tex
1 \documentclass[paper=a4,fontsize=10pt]{scrartcl}
2 \usepackage{kiviletter}
3
4
5 % Variablen, die in settings verwendet werden
6 \newcommand{\lxlangcode} {<%template_meta.language.template_code%>}
7 \newcommand{\lxmedia} {<%media%>}
8 \newcommand{\lxcurrency} {<%currency%>}
9 \newcommand{\kivicompany} {<%employee_company%>}
10
11 % settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
12 \input{insettings.tex}
13
14
15 % laufende Kopfzeile:
16 \ourhead{\kundennummer}{<%customernumber%>}{\lieferschein}{<%donumber%>}{<%dodate%>}
17
18 \setkomavar*{date}{\datum}
19 \setkomavar{date}{<%dodate%>}
20 \setkomavar{fromname}{<%employee_name%>}
21 \setkomavar{fromphone}{<%employee_tel%>}
22 \setkomavar{fromemail}{<%employee_email%>}
23 \setkomavar{title}{
24         \lieferschein~
25         \nr~<%donumber%>%
26 }
27 <%if ordnumber%>
28         \setkomavar{orderID}{<%ordnumber%>}
29 <%end if%>%
30 <%if cusordnumber%>%
31         \setkomavar*{yourref}{\unsereBestellnummer}
32         \setkomavar{yourref}{<%cusordnumber%>}
33 <%end if%>%
34 \setkomavar{transaction}{<%transaction_description%>}
35
36 <%if globalprojectnumber%>%
37         \setkomavar{projectID}{<%globalprojectnumber%>}
38 <%end globalprojectnumber%>%
39
40 \setkomavar{transaction}{<%transaction_description%>}
41 \setkomafont{extraDescription}{\scriptsize}
42
43 \begin{document}
44
45 \begin{letter}{
46   \Ifstr{<%shiptoname%>}{}{ % KEINE ABWEICHENDE LIEFERADRESSE
47         <%name%>\strut\\
48         <%if department_1%><%department_1%>\\<%end if%>%
49         <%if department_2%><%department_2%>\\<%end if%>%
50         <%cp_givenname%> <%cp_name%>\strut\\
51         <%street%>\strut\\
52         <%zipcode%> <%city%>\strut\\
53         <%country%> \strut
54   }{ % ABWEICHENDE LIEFERADRESSE (Aus Stammdaten oder Beleg)
55         <%shiptoname%>\strut\\
56         <%if shiptocontact%> <%shiptocontact%><%end if%>\strut\\
57         <%shiptodepartment_1%>\strut\\
58         <%shiptodepartment_2%>\strut\\
59         <%shiptostreet%>\strut\\
60         <%shiptozipcode%> <%shiptocity%>\strut
61         } % ende ifthenelse LIEFERADRESSE
62 }
63
64 \opening{}
65 \thispagestyle{kivitendo.letter.first}
66
67 \begin{PricingTabular*}[columns={pos, id, desc, amount}]
68 % eigentliche Tabelle
69 \FakeTable{
70 <%foreach number%>%
71         <%runningnumber%> &
72         <%number%> &
73         \textbf{<%description%>}
74                 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
75                 <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
76                 <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
77                 <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
78                 <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
79                 <%foreach si_number%>%
80                         <%if si_chargenumber%>\ExtraDescription{\charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%><%si_qty%>~<%si_unit%><%end si_chargenumber%>}%
81                 <%end si_number%>%
82         &
83                 <%qty%> <%unit%>%
84         \tabularnewline
85 <%end number%>%
86 }
87 \end{PricingTabular*}
88
89 \medskip
90
91 <%if notes%>%
92 <%notes%>%
93 \medskip
94 <%end if%>%
95
96 <%if delivery_term%>%
97   \lieferung ~<%delivery_term.description_long%>\\
98 <%end delivery_term%>%
99
100 \end{letter}
101
102 \end{document}