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%>}{\mahnung}{<%dunning_id%>}{<%dunning%>}
18 \setkomavar*{date}{\datum}
19 \setkomavar{date}{<%dunning_date%>}
20 \setkomavar{customer}{<%customernumber%>}
21 \setkomavar{fromname}{<%employee_name%>}
22 \setkomavar{fromphone}{<%employee_tel%>}
23 \setkomavar{fromemail}{<%employee_email%>}
26 <%if dunning_id%>~\nr~<%dunning_id%><%end if%>%
28 \setkomavar{transaction}{<%transaction_description%>}
34 <%if department_1%><%department_1%>\\<%end if%>%
35 <%if department_2%><%department_2%>\\<%end if%>%
36 <%cp_givenname%> <%cp_name%>\strut\\
38 <%zipcode%> <%city%>\strut\\
42 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
43 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
46 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
48 \Ifstr{<%cp_gender%>}{f}
51 <%cp_title%> <%cp_name%>,
54 \thispagestyle{kivitendo.letter.first}
58 \begin{SimpleTabular}[headline=\bfseries\rechnung~\nr&\bfseries\datum&\bfseries\betrag,colspec=rXr<{\tabcurrency}]
60 <%foreach dn_invnumber%>%
61 <%dn_invnumber%> & <%dn_transdate%> & <%dn_amount%> \\[0.1cm]
68 \bitteZahlenBis~<%dunning_duedate%>.
71 \beruecksichtigtBis~<%dunning_date%>.