X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fprint%2FRB%2Fsales_quotation.tex;h=e8661cf2e1628ac5659c3b720239ccafd6a83fb7;hb=209ae3b0a164a907a0f8e53b3b82015cbab7cdbf;hp=90df78555645b2003de017c07df14c8d90dd1c64;hpb=6865562413d5c3834156950e475bbcf45bd75a24;p=kivitendo-erp.git diff --git a/templates/print/RB/sales_quotation.tex b/templates/print/RB/sales_quotation.tex index 90df78555..e8661cf2e 100644 --- a/templates/print/RB/sales_quotation.tex +++ b/templates/print/RB/sales_quotation.tex @@ -83,10 +83,12 @@ \hfill -% Anrede nach Geschlecht unterscheiden -\ifthenelse{\equal{<%cp_name%>}{}}{\anrede}{ - \ifthenelse{\equal{<%cp_gender%>}{f}} - {\anredefrau}{\anredeherr} <%cp_title%> <%cp_name%>,}\\ +% 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%>,}\\ \angebotsformel\\ @@ -145,6 +147,12 @@ <%if serialnumber%> && \scriptsize \seriennummer: <%serialnumber%>\\<%end serialnumber%> <%if ean%> && \scriptsize \ean: <%ean%>\\<%end ean%> <%if projectnumber%> && \scriptsize \projektnummer: <%projectnumber%>\\<%end projectnumber%> + <%if optional%> && \scriptsize \optional \\<%end%> + <%if customer_make%> + <%foreach customer_make%> + \ifthenelse{\equal{<%customer_make%>}{<%name%>}}{&& \kundenartnr: <%customer_model%>\\}{} + <%end foreach%> + <%end if%> \\[-0.8em] <%end number%>