X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fprint%2FRB%2Fstatement.tex;h=7435a1709831a01a4df9f497e6a76218b62b66a5;hb=d21bdcaf73d55909d130fbbe26137fd45114adde;hp=b545a67cabd0646631ce74197638437679e42bd6;hpb=eca0862f8bcc69d22d94c41cc9076a008c77056d;p=kivitendo-erp.git diff --git a/templates/print/RB/statement.tex b/templates/print/RB/statement.tex index b545a67ca..7435a1709 100644 --- a/templates/print/RB/statement.tex +++ b/templates/print/RB/statement.tex @@ -2,10 +2,10 @@ % Variablen, die in settings verwendet werden -\newcommand{\lxtmpfile} {<%tmpfile%>} +\newcommand{\lxlangcode} {<%template_meta.language.template_code%>} \newcommand{\lxmedia} {<%media%>} \newcommand{\lxcurrency} {<%currency%>} -\newcommand{\lxcompany} {<%employee_company%>} +\newcommand{\kivicompany} {<%employee_company%>} % settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile \input{insettings.tex} @@ -45,8 +45,10 @@ \hfill -% Anrede nach Geschlecht unterscheiden -\ifthenelse{\equal{<%cp_name%>}{}}{\anrede}{ +% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. +% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. +\ifthenelse{\equal{<%cp_name%>}{}}{ + <%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}{ \ifthenelse{\equal{<%cp_gender%>}{f}} {\anredefrau}{\anredeherr} <%cp_title%> <%cp_name%>,}\\