From: Marei Peischl Date: Sun, 12 Jan 2020 22:11:55 +0000 (+0100) Subject: new structure to zahlungserinnerung.tex X-Git-Tag: release-3.5.6.1~277 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=af7a34048452ed06f90fadf4c2e36c970cc86efd;p=kivitendo-erp.git new structure to zahlungserinnerung.tex --- diff --git a/zahlungserinnerung.tex b/zahlungserinnerung.tex index e23f3efbc..e0b8681df 100644 --- a/zahlungserinnerung.tex +++ b/zahlungserinnerung.tex @@ -18,63 +18,45 @@ \begin{document} -\begin{minipage}[t]{8cm} - \scriptsize - - {\color{gray}\underline{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}} - \normalsize - - \vspace*{0.3cm} - - <%name%> - - <%if department_1%><%department_1%><%end if%> - - <%if department_2%><%department_2%><%end if%> - - <%cp_givenname%> <%cp_name%> - - <%street%> - - ~ - - <%zipcode%> <%city%> - - <%country%> -\end{minipage} -\hfill -\begin{minipage}[t]{6cm} - \hfill{\LARGE\textbf{\mahnung}} - - \vspace*{0.2cm} - - <%if dunning_id%>\hfill{\large\textbf{\nr ~<%dunning_id%>}}<%end if%> - - \vspace*{0.2cm} - - \datum:\hfill <%dunning_date%> - - \kundennummer:\hfill <%customernumber%> - - \ansprechpartner:\hfill <%employee_name%> - - \textTelefon \hfill <%employee_tel%> - - \textEmail \hfill <%employee_email%> -\end{minipage} - -\vspace*{1.5cm} - -\hfill +\setkomavar*{date}{\datum} + +\setkomavar{date}{<%dunning_date%>} +\setkomavar{customer}{<%customernumber%>} +\setkomavar{fromname}{<%employee_name%>} +\setkomavar{fromphone}{<%employee_tel%>} +\setkomavar{fromemail}{<%employee_email%>} +\setkomavar{title}{ + \mahnung + <%if dunning_id%>~\nr~<%dunning_id%>}}<%end if%> +} +\setkomavar{transaction}{<%transaction_description%>} + +\begin{letter}{ + <%name%>\strut\\ + <%if department_1%><%department_1%>\\<%end if%> + <%if department_2%><%department_2%>\\<%end if%> + <%cp_givenname%> <%cp_name%>\strut\\ + <%street%>\strut\\ + <%zipcode%> <%city%>\strut\\ + <%country%> \strut + } % Anrede nach Geschlecht unterscheiden -\ifthenelse{\equal{<%cp_name%>}{}}{\anrede}{ - \ifthenelse{\equal{<%cp_gender%>}{f}} - {\anredefrau}{\anredeherr} <%cp_title%> <%cp_name%>,}\\ +\opening{ + \ifstr{<%cp_name%>}{} + {\anrede} + { + \ifstr{<%cp_gender%>}{f} + {\anredefrau} + {\anredeherr} + <%cp_title%> <%cp_name%>, + } +} +\thispagestyle{kivitendo.letter.first} + +\mahnungsformel -\mahnungsformel\\ -\vspace{0.5cm} \setlength\LTleft\parindent % Tabelle beginnt am linken Textrand @@ -118,9 +100,8 @@ \schonGezahlt -\vspace*{0.5cm} +\closing{\gruesse} -\gruesse \\ \\ \\ - <%employee_name%> +\end{letter} \end{document}