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%>}{\angebot}{<%quonumber%>}{<%transdate%>}
21 \setkomavar{signature}{%
27 \setkomavar*{date}{\datum}
29 \setkomavar{date}{<%transdate%>}
30 \setkomavar{customer}{<%customernumber%>}
31 \setkomavar{fromname}{<%employee_name%>}
32 \setkomavar{fromphone}{<%employee_tel%>}
33 \setkomavar{fromemail}{<%employee_email%>}
39 \setkomavar{transaction}{<%transaction_description%>}
43 \begin{lrbox}\shippingAddressBox
44 \parbox{\useplength{toaddrwidth}}{
45 \backaddr@format{\scriptsize\usekomafont{backaddress}%
46 \strut\abweichendeLieferadresse
49 \setlength{\parskip}{\z@}
53 <%if shiptocontact%> <%shiptocontact%><%end if%>\par
54 <%shiptodepartment_1%>\par
55 <%shiptodepartment_2%>\par
57 <%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}
91 \begin{PricingTabular*}
97 \textbf{<%description%>}%
98 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
99 <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
100 <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
101 <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
102 <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
106 \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
107 <%linetotal%>\tabularnewline
111 % Tabellenende letzte Seite
112 \nettobetrag & <%subtotal%>\\
114 <%taxdescription%> & <%tax%>\\
116 \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\
118 \end{PricingTabular*}
125 <%if delivery_term%>%
126 \lieferung ~<%delivery_term.description_long%>\\
127 <%end delivery_term%>%
131 \angebotgueltig~<%reqdate%>.
140 \begin{minipage}{\textwidth}
141 \rule{\linewidth}{.2pt}\par
142 \auftragerteilt\par\bigskip
143 \nurort:\rule[-.5ex]{8cm}{.2pt}\ ,\den\ \rule[-.5ex]{5cm}{.2pt}\par\bigskip
145 \unterschrift/\stempel:\rule[-.5ex]{6cm}{.2pt}