add shippingAddressBox mechanism
authorMarei Peischl <marei@peitex.de>
Wed, 27 Nov 2019 13:16:36 +0000 (14:16 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 3 Feb 2020 11:21:38 +0000 (12:21 +0100)
sales_quotation.tex

index 2cebc5d..308a03c 100644 (file)
 %  \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
+
+<%if shiptoname%>
+\makeatletter
+  \begin{lrbox}\shippingAddressBox
+  \parbox{\useplength{toaddrwidth}}{
+       \backaddr@format{\scriptsize\usekomafont{backaddress}%
+               \strut abweichende Lieferadresse
+       }
+       \par\smallskip
+       \setlength{\parskip}{\z@}
+       \par
+       \normalsize
+       <%shiptoname%>\par
+        <%if shiptocontact%> <%shiptocontact%><%end if%>\par
+       <%shiptodepartment_1%>\par
+       <%shiptodepartment_2%>\par
+       <%shiptostreet%>\par
+       <%shiptozipcode%> <%shiptocity%>
+ }
+\end{lrbox}
+\makeatother
+<%end if%>
 
 
 \begin{letter}{