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{}{}{\bestellung}{<%ordnumber%>}{<%orddate%>}
19 \setkomavar*{date}{\datum}
20 \setkomavar{date}{<%orddate%>}
22 \setkomavar{fromname}{<%employee_name%>}
23 \setkomavar{fromphone}{<%employee_tel%>}
24 \setkomavar{fromemail}{<%employee_email%>}
31 \setkomavar*{yourref}{\unsereBestellnummer}
32 \setkomavar{yourref}{<%cusordnumber%>}
34 \setkomavar{transaction}{<%transaction_description%>}
37 \setkomavar{quote}{<%quonumber%>}
42 \begin{lrbox}\shippingAddressBox
43 \parbox{\useplength{toaddrwidth}}{
44 \backaddr@format{\scriptsize\usekomafont{backaddress}%
45 \strut abweichende Lieferadresse
48 \setlength{\parskip}{\z@}
52 <%if shiptocontact%> <%shiptocontact%><%end if%>\par
53 <%shiptodepartment_1%>\par
54 <%shiptodepartment_2%>\par
56 <%shiptozipcode%> <%shiptocity%>%
66 <%if department_1%><%department_1%>\\<%end if%>%
67 <%if department_2%><%department_2%>\\<%end if%>%
68 <%cp_givenname%> <%cp_name%>\strut\\
70 <%zipcode%> <%city%>\strut\\
74 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
75 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
78 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
80 \Ifstr{<%cp_gender%>}{f}
83 <%cp_title%> <%cp_name%>,
86 \thispagestyle{kivitendo.letter.first}
90 \begin{PricingTabular*}
96 \textbf{<%description%>}%
97 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
98 <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
99 <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
100 <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
101 <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
105 \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
106 <%linetotal%>\tabularnewline
109 \begin{PricingTotal}%
110 % Tabellenende letzte Seite
111 \nettobetrag & <%subtotal%>\\%
113 <%taxdescription%> & <%tax%>\\%
115 \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\%
117 \end{PricingTabular*}
124 <%if delivery_term%>%
125 \lieferung ~<%delivery_term.description_long%>\\
126 <%end delivery_term%>%