X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fprint%2Fmarei%2Fpurchase_order.tex;h=677e2abd6c7018e7e27f8f4bc68292db938bfb26;hb=7a22d3a4a4460f6e9e5647124358fd03071fc030;hp=c0484c02b19899d206f3a7320a970a5b06725f1d;hpb=4987cdc759332a4226006c34f3b7c78ee031bc62;p=kivitendo-erp.git diff --git a/templates/print/marei/purchase_order.tex b/templates/print/marei/purchase_order.tex index c0484c02b..677e2abd6 100644 --- a/templates/print/marei/purchase_order.tex +++ b/templates/print/marei/purchase_order.tex @@ -16,25 +16,28 @@ \ourhead{}{}{\bestellung}{<%ordnumber%>}{<%orddate%>} -\begin{document} - -\setkomavar{title}{ - \bestellung~ - \nr~<%ordnumber%> -} \setkomavar*{date}{\datum} \setkomavar{date}{<%orddate%>} -<%if cusordnumber%> -\setkomavar*{yourref}{\unsereBestellnummer} -\setkomavar{yourref}{<%cusordnumber%>} -<%end if%> -<%if quonumber%>\setkomavar{quote}{<%quonumber%>}<%end if%> + \setkomavar{fromname}{<%employee_name%>} \setkomavar{fromphone}{<%employee_tel%>} \setkomavar{fromemail}{<%employee_email%>} +\setkomavar{title}{ + \bestellung~ + \nr~<%ordnumber%>% +} + +<%if cusordnumber%>% + \setkomavar*{yourref}{\unsereBestellnummer} + \setkomavar{yourref}{<%cusordnumber%>} +<%end if%>% \setkomavar{transaction}{<%transaction_description%>} -<%if shiptoname%> +<%if quonumber%> + \setkomavar{quote}{<%quonumber%>} +<%end if%>% + +<%if shiptoname%>% \makeatletter \begin{lrbox}\shippingAddressBox \parbox{\useplength{toaddrwidth}}{ @@ -50,33 +53,35 @@ <%shiptodepartment_1%>\par <%shiptodepartment_2%>\par <%shiptostreet%>\par - <%shiptozipcode%> <%shiptocity%> + <%shiptozipcode%> <%shiptocity%>% } \end{lrbox} \makeatother -<%end if%> +<%end if%>% +\begin{document} \begin{letter}{ <%name%>\strut\\ - <%if department_1%><%department_1%>\\<%end if%> - <%if department_2%><%department_2%>\\<%end if%> + <%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 +% Bei Kontaktperson Anrede nach Geschlecht unterscheiden. +% Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede. \opening{ - \ifstr{<%cp_name%>}{} - {\anrede} - { - \ifstr{<%cp_gender%>}{f} + \Ifstr{<%cp_name%>}{} + {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>} + { + \Ifstr{<%cp_gender%>}{f} {\anredefrau} {\anredeherr} <%cp_title%> <%cp_name%>, - } + } } \thispagestyle{kivitendo.letter.first} @@ -85,7 +90,7 @@ \begin{PricingTabular*} % eigentliche Tabelle \FakeTable{ - <%foreach number%>% + <%foreach number%>% <%runningnumber%> &% <%number%> &% \textbf{<%description%>}% @@ -97,28 +102,28 @@ &% <%qty%> <%unit%> &% <%sellprice%>&% - \ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}% + \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}% <%linetotal%>\tabularnewline - <%end number%> - } - \begin{PricingTotal} + <%end number%>% + }% + \begin{PricingTotal}% % Tabellenende letzte Seite - \nettobetrag & <%subtotal%>\\ - <%foreach tax%> - <%taxdescription%> & <%tax%>\\ - <%end tax%> - \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\ + \nettobetrag & <%subtotal%>\\% + <%foreach tax%>% + <%taxdescription%> & <%tax%>\\% + <%end tax%>% + \bfseries\schlussbetrag & \bfseries <%ordtotal%>\\% \end{PricingTotal} \end{PricingTabular*} -<%if notes%> -<%notes%> +<%if notes%>% +<%notes%>% \medskip -<%end if%> +<%end if%>% -<%if delivery_term%> +<%if delivery_term%>% \lieferung ~<%delivery_term.description_long%>\\ -<%end delivery_term%> +<%end delivery_term%>% \closing{\gruesse} \end{letter}