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{\kundennummer}{<%customernumber%>}{\lieferschein}{<%donumber%>}{<%dodate%>}
18 \setkomavar*{date}{\datum}
19 \setkomavar{date}{<%dodate%>}
20 \setkomavar{fromname}{<%employee_name%>}
21 \setkomavar{fromphone}{<%employee_tel%>}
22 \setkomavar{fromemail}{<%employee_email%>}
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}
46 \Ifstr{<%shiptoname%>}{}{ % KEINE ABWEICHENDE LIEFERADRESSE
48 <%if department_1%><%department_1%>\\<%end if%>%
49 <%if department_2%><%department_2%>\\<%end if%>%
50 <%cp_givenname%> <%cp_name%>\strut\\
52 <%zipcode%> <%city%>\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
65 \thispagestyle{kivitendo.letter.first}
67 \begin{PricingTabular*}[columns={pos, id, desc, amount}]
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%>}%
97 \lieferung ~<%delivery_term.description_long%>\\
98 <%end delivery_term%>%