merge komavar changes for location/reffields
authorMarei Peischl <marei@peitex.de>
Thu, 21 Nov 2019 13:03:51 +0000 (14:03 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
sales_quotation.tex

index b463243..64fd84f 100644 (file)
 \begin{document}
 
 \setkomavar{signature}{
-<%employee_company%>\ifhmode\\\fi<%salesman_name%>
+<%employee_company%>%
+\ifhmode\\\fi
+<%salesman_name%>%
 }
 
-\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{\angebot}}
-
-  \vspace*{0.2cm}
-
-  \hfill{\large\textbf{\nr ~<%quonumber%>}}
-
-  \vspace*{0.2cm}
-
-  \datum:\hfill <%transdate%>
-
-  \kundennummer:\hfill <%customernumber%>
-
-  \ansprechpartner:\hfill <%employee_name%>
-
-  \textTelefon \hfill <%employee_tel%>
-
-  \textEmail \hfill <%employee_email%>
-
-\end{minipage}
-
-<%if shiptoname%>
-  \vspace{0.8cm}
-  \scriptsize \underline{\abweichendeLieferadresse:}\\
-  \normalsize    <%shiptoname%>
-
-                 <%if shiptocontact%> <%shiptocontact%><%end if%>
-
-                 <%shiptodepartment_1%>
-
-                  <%shiptodepartment_2%>
-
-                  <%shiptostreet%>
-
-                  <%shiptozipcode%> <%shiptocity%>
-<%end if%>
-\vspace*{1.5cm}
-
-\hfill
+\setkomavar{offer}{<%quonumber%>}
+\setkomavar{date}{<%transdate%>}
+\setkomavar{customer}{<%customernumber%>}
+\setkomavar{fromname}{<%employee_name%>}
+\setkomavar{fromphone}{<%employee_tel%>}
+\setkomavar{fromemail}{<%employee_email%>}
+
+%\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{\angebot}}
+%
+%  \vspace*{0.2cm}
+%
+%  \hfill{\large\textbf{\nr ~<%quonumber%>}}
+%
+%  \vspace*{0.2cm}
+%
+%  \datum:\hfill <%transdate%>
+%
+%  \kundennummer:\hfill <%customernumber%>
+%
+%  \ansprechpartner:\hfill <%employee_name%>
+%
+%  \textTelefon \hfill <%employee_tel%>
+%
+%  \textEmail \hfill <%employee_email%>
+%
+%\end{minipage}
+%
+%<%if shiptoname%>
+%  \vspace{0.8cm}
+%  \scriptsize \underline{\abweichendeLieferadresse:}\\
+%  \normalsize    <%shiptoname%>
+%
+%                 <%if shiptocontact%> <%shiptocontact%><%end if%>
+%
+%                 <%shiptodepartment_1%>
+%
+%                  <%shiptodepartment_2%>
+%
+%                  <%shiptostreet%>
+%
+%                  <%shiptozipcode%> <%shiptocity%>
+%<%end if%>
+%\vspace*{1.5cm}
+%
+%\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%>
+  <%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