1 \documentclass[paper=a4,fontsize=10pt]{scrartcl}
2 \usepackage{kiviletter}
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%>}
11 % settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
12 \input{insettings.tex}
16 \ourhead{}{}{\einkaufslieferschein}{<%donumber%>}{<%dodate%>}
18 \setkomavar*{date}{\datum}
19 \setkomavar{date}{<%dodate%>}
21 \setkomavar{fromname}{<%employee_name%>}
22 \setkomavar{fromphone}{<%employee_tel%>}
23 \setkomavar{fromemail}{<%employee_email%>}
25 \einkaufslieferschein~\nr ~<%donumber%>%
28 \setkomavar{orderID}{<%ordnumber%>}
31 \setkomavar*{yourref}{\unsereBestellnummer}
32 \setkomavar{yourref}{<%cusordnumber%>}
34 \setkomavar{transaction}{<%transaction_description%>}
36 <%if globalprojectnumber%>%
37 \setkomavar{projectID}{<%globalprojectnumber%>}
38 <%end globalprojectnumber%>%
40 \setkomavar{transaction}{<%transaction_description%>}
41 \setkomafont{extraDescription}{\scriptsize}
45 \begin{lrbox}\shippingAddressBox
46 \parbox{\useplength{toaddrwidth}}{
47 \backaddr@format{\scriptsize\usekomafont{backaddress}%
48 \strut\abweichendeLieferadresse
51 \setlength{\parskip}{\z@}
55 <%if shiptocontact%> <%shiptocontact%><%end if%>\par
56 <%shiptodepartment_1%>\par
57 <%shiptodepartment_2%>\par
59 <%shiptozipcode%> <%shiptocity%>%
71 <%if department_1%><%department_1%>\\<%end if%>%
72 <%if department_2%><%department_2%>\\<%end if%>%
73 <%cp_givenname%> <%cp_name%>\strut\\
75 <%zipcode%> <%city%>\strut\\
81 \thispagestyle{kivitendo.letter.first}
83 \begin{PricingTabular*}[columns={pos,amount,desc}]
89 \textbf{<%description%>}
90 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
91 <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
92 <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
93 <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
94 <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
95 <%foreach si_number%>%
96 <%if si_chargenumber%>\ExtraDescription{\charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%><%si_qty%>~<%si_unit%><%end si_chargenumber%>}%
101 \end{PricingTabular*}
110 <%if delivery_term%>%
111 \lieferung ~<%delivery_term.description_long%>\\
112 <%end delivery_term%>%