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}{<%invdate%>}
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%>}
34 \setkomavar{transaction}{<%transaction_description%>}
37 \begin{lrbox}\shippingAddressBox
38 \parbox{\useplength{toaddrwidth}}{
39 \backaddr@format{\scriptsize\usekomafont{backaddress}%
40 \strut\abweichendeLieferadresse
43 \setlength{\parskip}{\z@}
47 <%if shiptocontact%> <%shiptocontact%><%end if%>\par
48 <%shiptodepartment_1%>\par
49 <%shiptodepartment_2%>\par
51 <%shiptozipcode%> <%shiptocity%>%
61 <%if department_1%><%department_1%>\\<%end if%>%
62 <%if department_2%><%department_2%>\\<%end if%>%
63 <%cp_givenname%> <%cp_name%>\strut\\
65 <%zipcode%> <%city%>\strut\\
69 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
70 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
73 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
75 \Ifstr{<%cp_gender%>}{f}
78 <%cp_title%> <%cp_name%>,
81 \thispagestyle{kivitendo.letter.first}
92 \begin{PricingTabular*}%
93 % eigentliche Tabelle%
98 \textbf{<%description%>}%
99 <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
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%
110 \begin{PricingTotal}%
111 % Tabellenende letzte Seite
112 \nettobetrag & <%subtotal%>\\%
114 <%taxdescription%> & <%tax%>\\%
116 \bfseries\schlussbetrag & \bfseries <%invtotal%>\\%
118 \end{PricingTabular*}