X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fprint%2FRB%2Fsales_quotation.tex;h=e8661cf2e1628ac5659c3b720239ccafd6a83fb7;hb=3e3d4b88a71703e3ba2b26eeb3f3b8a3b643a478;hp=f2490dec7fc63197f7d2bb60748028275cc79eb1;hpb=88b407e827a4129cdae84bd92d11cd3e8a145987;p=kivitendo-erp.git diff --git a/templates/print/RB/sales_quotation.tex b/templates/print/RB/sales_quotation.tex index f2490dec7..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,15 +147,21 @@ <%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%> \end{longtable} - -space{5mm} - <%notes%> - \vspace{5mm} +<%if notes%> + \vspace{5mm} + <%notes%> + \vspace{5mm} <%end if%> <%if delivery_term%>