Revision ab064135
Von Marei Peischl vor 11 Monaten hinzugefügt
templates/print/marei/statement.tex | ||
---|---|---|
29 | 29 |
\begin{document} |
30 | 30 |
|
31 | 31 |
\begin{letter}{% |
32 |
<%if billing_address_id%>% |
|
33 |
<%billing_address_name%> \strut\\%
|
|
34 |
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
|
|
35 |
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
|
|
36 |
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
|
|
37 |
<%billing_address_street%>\strut\\%
|
|
38 |
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
|
|
39 |
<%billing_address_country%>\strut\\%
|
|
40 |
<%else%>% |
|
41 |
<%name%>\strut\\%
|
|
42 |
<%if department_1%><%department_1%>\\<%end if%>%
|
|
43 |
<%if department_2%><%department_2%>\\<%end if%>%
|
|
44 |
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
|
|
45 |
<%street%>\strut\\%
|
|
46 |
<%zipcode%> <%city%>\strut\\%
|
|
47 |
<%country%>\strut%
|
|
48 |
<%end if%>%
|
|
49 |
} |
|
32 |
<%if billing_address_id%>%
|
|
33 |
<%billing_address_name%> \strut\\%
|
|
34 |
<%if department_1%><%billing_address_department_1%>\\<%end if%>%
|
|
35 |
<%if department_2%><%billing_address_department_2%>\\<%end if%>%
|
|
36 |
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
|
|
37 |
<%billing_address_street%>\strut\\%
|
|
38 |
<%billing_address_zipcode%> <%billing_address_city%> \strut\\%
|
|
39 |
<%billing_address_country%>\strut\\%
|
|
40 |
<%else%>%
|
|
41 |
<%name%>\strut\\%
|
|
42 |
<%if department_1%><%department_1%>\\<%end if%>%
|
|
43 |
<%if department_2%><%department_2%>\\<%end if%>%
|
|
44 |
<%cp_title%> <%cp_givenname%> <%cp_name%>\strut\\%
|
|
45 |
<%street%>\strut\\%
|
|
46 |
<%zipcode%> <%city%>\strut\\%
|
|
47 |
<%country%>\strut%
|
|
48 |
<%end billing_address_id%>%
|
|
49 |
}
|
|
50 | 50 |
|
51 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. |
|
52 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. |
|
53 |
\opening{ |
|
54 |
\Ifstr{<%cp_name%>}{} |
|
55 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
|
|
56 |
{ |
|
57 |
\Ifstr{<%cp_gender%>}{f} |
|
58 |
{\anredefrau}
|
|
59 |
{\anredeherr}
|
|
51 |
% Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
|
|
52 |
% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
|
|
53 |
\opening{
|
|
54 |
\Ifstr{<%cp_name%>}{}
|
|
55 |
{<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede}<%end if%>
|
|
56 |
{
|
|
57 |
\Ifstr{<%cp_gender%>}{f}
|
|
58 |
{\anredefrau} |
|
59 |
{\anredeherr} |
|
60 | 60 |
<%cp_title%> <%cp_name%>, |
61 | 61 |
} |
62 | 62 |
} |
63 |
\thispagestyle{kivitendo.letter.first} |
|
64 |
|
|
65 |
\sammelrechnungsformel |
|
66 |
|
|
67 |
\begin{SimpleTabular}[ |
|
68 |
colspec=l*6X, |
|
69 |
headline={\bfseries\rechnung~\nr & \bfseries\datum & \bfseries\faellig & |
|
70 |
\bfseries\aktuell & \bfseries\asDreissig & \bfseries\asSechzig & \bfseries\asNeunzig} |
|
71 |
] |
|
72 |
% eigentliche Tabelle |
|
73 |
<%foreach invnumber%>% |
|
74 |
<%invnumber%> & <%invdate%> & <%duedate%> & |
|
75 |
<%c0%> & <%c30%> & <%c60%> & <%c90%> \\ |
|
76 |
<%end invnumber%>% |
|
77 |
% Tabellenende letzte Seite |
|
78 |
\midrule[\heavyrulewidth] |
|
79 |
\multicolumn{3}{@{}l}{\bfseries\zwischensumme} & \bfseries<%c0total%> & \bfseries<%c30total%> & \bfseries<%c60total%> & \bfseries<%c90total%>\\* |
|
80 |
\midrule |
|
81 |
\multicolumn{3}{@{}l}{\bfseries\schlussbetrag} & &&&\bfseries<%total%> \\ |
|
82 |
\end{SimpleTabular} |
|
83 |
|
|
84 |
\closing{\gruesse} |
|
63 |
\thispagestyle{kivitendo.letter.first}
|
|
64 |
|
|
65 |
\sammelrechnungsformel
|
|
66 |
|
|
67 |
\begin{SimpleTabular}[
|
|
68 |
colspec=l*6X,
|
|
69 |
headline={\bfseries\rechnung~\nr & \bfseries\datum & \bfseries\faellig &
|
|
70 |
\bfseries\aktuell & \bfseries\asDreissig & \bfseries\asSechzig & \bfseries\asNeunzig}
|
|
71 |
]
|
|
72 |
% eigentliche Tabelle
|
|
73 |
<%foreach invnumber%>%
|
|
74 |
<%invnumber%> & <%invdate%> & <%duedate%> &
|
|
75 |
<%c0%> & <%c30%> & <%c60%> & <%c90%> \\
|
|
76 |
<%end invnumber%>%
|
|
77 |
% Tabellenende letzte Seite
|
|
78 |
\midrule[\heavyrulewidth]
|
|
79 |
\multicolumn{3}{@{}l}{\bfseries\zwischensumme} & \bfseries<%c0total%> & \bfseries<%c30total%> & \bfseries<%c60total%> & \bfseries<%c90total%>\\*
|
|
80 |
\midrule
|
|
81 |
\multicolumn{3}{@{}l}{\bfseries\schlussbetrag} & &&&\bfseries<%total%> \\
|
|
82 |
\end{SimpleTabular}
|
|
83 |
|
|
84 |
\closing{\gruesse}
|
|
85 | 85 |
|
86 | 86 |
\end{letter} |
87 | 87 |
|
Auch abrufbar als: Unified diff
unify identation