letter environment
authorMarei Peischl <marei@peitex.de>
Thu, 21 Nov 2019 11:00:25 +0000 (12:00 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
sales_quotation.tex

index 80cae0b..55b08e0 100644 (file)
 
 \begin{document}
 
+\setkomavar{signature}{
+<%employee_company%>\ifhmode\\\fi<%salesman_name%>
+}
+
 \begin{minipage}[t]{8cm}
   \scriptsize
 
 
 \hfill
 
+
+\begin{letter}{
+  <%name%>\\
+  <%if department_1%><%department_1%><%end if%>\\
+  <%if department_2%><%department_2%><%end if%>\\
+  <%cp_givenname%> <%cp_name%>\\
+  <%street%>\\
+  <%zipcode%> <%city%>\\
+  <%country%>
+}
+
 % 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}
 
 \angebotsformel\\
 
 
 \end{longtable}
 
-
-space{5mm}
-        <%notes%>
-        \vspace{5mm}
+<%if notes%>
+  <%notes%>
+  \medskip
 <%end if%>
 
 <%if delivery_term%>
@@ -165,20 +187,18 @@ space{5mm}
 <%end if%>
 \angebotfragen
 
-~\\
 
-\angebotagb \\ \\
+\angebotagb
 
-\gruesse \\ \\ \\
-<%employee_company%>
+\closing{\gruesse}
 
-<%salesman_name%>\\\\
+\begin{minipage}{\textwidth}
+\auftragerteilt\par\bigskip
+\nurort:\rule[-.5ex]{8cm}{.2pt}\ ,\den\ \rule[-.5ex]{5cm}{.2pt}\par\bigskip
 
-\parbox[t]{175mm}{
+\unterschrift/\stempel:\rule[-.5ex]{6cm}{.2pt}
+\end{minipage}
 
-  \auftragerteilt\\\\
-  \nurort:\uline{\hspace*{8cm}}\ ,\den\ \uline{\hspace*{5cm}}\\\\\\\\\\
 
-  \unterschrift / \stempel:\uline{\hspace*{6cm}}
-}
+\end{letter}
 \end{document}