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%>}{\proformarechnung}{<%ordnumber%>}{<%invdate%>}
25 \setkomavar*{date}{\datum}
27 \setkomavar{date}{<%orddate%>}
28 \setkomavar{customer}{<%customernumber%>}
30 \setkomavar*{yourref}{\ihreBestellnummer}
31 \setkomavar{yourref}{<%cusordnumber%>}
33 <%if quonumber%>\setkomavar{quote}{<%quonumber%>}<%end if%>%
34 \setkomavar{fromname}{<%employee_name%>}
35 \setkomavar{fromphone}{<%employee_tel%>}
36 \setkomavar{fromemail}{<%employee_email%>}
37 \setkomavar{transaction}{<%transaction_description%>}
41 \begin{lrbox}\shippingAddressBox
42 \parbox{\useplength{toaddrwidth}}{
43 \backaddr@format{\scriptsize\usekomafont{backaddress}%
44 \strut\abweichendeLieferadresse
47 \setlength{\parskip}{\z@}
51 <%if shiptocontact%> <%shiptocontact%><%end if%>\par
52 <%shiptodepartment_1%>\par
53 <%shiptodepartment_2%>\par
55 <%shiptozipcode%> <%shiptocity%>%
63 <%if department_1%><%department_1%>\\<%end if%>%
64 <%if department_2%><%department_2%>\\<%end if%>%
65 <%cp_givenname%> <%cp_name%>\strut\\
67 <%zipcode%> <%city%>\strut\\
71 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
72 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
75 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
77 \Ifstr{<%cp_gender%>}{f}
80 <%cp_title%> <%cp_name%>,
83 \thispagestyle{kivitendo.letter.first}
87 \begin{PricingTabular*}%
93 \textbf{<%description%>}%
94 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
95 <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
96 <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
97 <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
98 <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
102 \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
103 <%linetotal%>\tabularnewline%
106 \begin{PricingTotal}%
107 % Tabellenende letzte Seite%
108 \nettobetrag & <%subtotal%>\\%
110 <%taxdescription%> & <%tax%>\\%
112 \bfseries\schlussbetrag & \bfseries <%invtotal%>\\%
114 \end{PricingTabular*}
122 \lieferungErfolgtAm ~<%reqdate%>. \\
125 \textit{\auftragpruefen}