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%>}{\gutschrift}{<%invnumber%>}{<%invdate%>}
18 \setkomavar*{date}{\datum}
19 \setkomavar{date}{<%transdate%>}
20 \setkomavar{customer}{<%customernumber%>}
21 \setkomavar{fromname}{<%employee_name%>}
22 \setkomavar{fromphone}{<%employee_tel%>}
23 \setkomavar{fromemail}{<%employee_email%>}
29 <%if invnumber_for_credit_note%>%
30 \setkomavar*{myref}{\fuerRechnung}
31 \setkomavar{myref}{<%invnumber_for_credit_note%>}
38 \begin{lrbox}\shippingAddressBox
39 \parbox{\useplength{toaddrwidth}}{
40 \backaddr@format{\scriptsize\usekomafont{backaddress}%
41 \strut\abweichendeLieferadresse
44 \setlength{\parskip}{\z@}
48 <%if shiptocontact%> <%shiptocontact%><%end if%>\par
49 <%shiptodepartment_1%>\par
50 <%shiptodepartment_2%>\par
52 <%shiptozipcode%> <%shiptocity%>%
62 <%if department_1%><%department_1%>\\<%end if%>%
63 <%if department_2%><%department_2%>\\<%end if%>%
64 <%cp_givenname%> <%cp_name%>\strut\\
66 <%zipcode%> <%city%>\strut\\
70 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
71 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
74 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
76 \Ifstr{<%cp_gender%>}{f}
79 <%cp_title%> <%cp_name%>,
82 \thispagestyle{kivitendo.letter.first}
87 \begin{PricingTabular*}%
88 % eigentliche Tabelle%
93 \textbf{<%description%>}%
94 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
95 <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
96 <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
97 <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
101 \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
102 <%linetotal%>\tabularnewline%
105 \begin{PricingTotal}%
106 % Tabellenende letzte Seite
107 \nettobetrag & <%subtotal%>\\%
109 <%taxdescription%> & <%tax%>\\%
111 \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\%
113 \end{PricingTabular*}