MT940-Import: AQBanking-Unterstützung entfernt
[kivitendo-erp.git] / templates / print / marei / statement.tex
1 \documentclass[paper=a4,fontsize=10pt]{scrartcl}
2 \usepackage{kiviletter}
3
4
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%>}
10
11 % settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
12 \input{insettings.tex}
13
14
15 % laufende Kopfzeile:
16 \ourhead{}{}{\sammelrechnung}{}{}
17
18
19 \setkomavar{title}{
20         \sammelrechnung~
21         \nr~<%quonumber%>%
22 }
23 \setkomavar{transaction}{<%transaction_description%>}
24 \setkomavar{customer}{<%customernumber%>}
25 \setkomavar{fromname}{<%employee_name%>}
26 \setkomavar{fromphone}{<%employee_tel%>}
27 \setkomavar{fromemail}{<%employee_email%>}
28
29 \begin{document}
30
31 \begin{letter}{
32                 <%name%>\strut\\
33                 <%if department_1%><%department_1%>\\<%end if%>%
34                 <%if department_2%><%department_2%>\\<%end if%>%
35                 <%cp_givenname%> <%cp_name%>\strut\\
36                 <%street%>\strut\\
37                 <%zipcode%> <%city%>\strut\\
38                 <%country%> \strut
39         }
40
41 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
42 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
43 \opening{
44         \Ifstr{<%cp_name%>}{}
45                 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
46                 {
47                         \Ifstr{<%cp_gender%>}{f}
48                                 {\anredefrau}
49                                 {\anredeherr}
50                                 <%cp_title%> <%cp_name%>,
51                 }
52 }
53 \thispagestyle{kivitendo.letter.first}
54
55 \sammelrechnungsformel
56
57 \begin{SimpleTabular}[
58         colspec=l*6X,
59         headline={\bfseries\rechnung~\nr & \bfseries\datum & \bfseries\faellig &
60         \bfseries\aktuell & \bfseries\asDreissig & \bfseries\asSechzig & \bfseries\asNeunzig}
61 ]
62 % eigentliche Tabelle
63 <%foreach invnumber%>%
64         <%invnumber%> & <%invdate%> & <%duedate%> &
65         <%c0%> & <%c30%> & <%c60%> & <%c90%> \\
66 <%end invnumber%>%
67 % Tabellenende letzte Seite
68 \midrule[\heavyrulewidth]
69 \multicolumn{3}{@{}l}{\bfseries\zwischensumme} & \bfseries<%c0total%> & \bfseries<%c30total%> & \bfseries<%c60total%> & \bfseries<%c90total%>\\*
70 \midrule
71 \multicolumn{3}{@{}l}{\bfseries\schlussbetrag} & &&&\bfseries<%total%> \\
72 \end{SimpleTabular}
73
74 \closing{\gruesse}
75
76 \end{letter}
77
78 \end{document}
79