Revision 010c8d1e
Von Marei Peischl vor fast 5 Jahren hinzugefügt
sales_delivery_order.tex | ||
---|---|---|
18 | 18 |
|
19 | 19 |
\begin{document} |
20 | 20 |
|
21 |
\begin{minipage}[t]{8cm} |
|
22 |
\scriptsize |
|
23 |
{\color{gray}\underline{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}} |
|
24 |
\normalsize |
|
25 |
|
|
26 |
\vspace*{0.3cm} |
|
27 |
\ifthenelse{\equal{<%shiptoname%>}{}}{ % KEINE ABWEICHENDE LIEFERADRESSE |
|
28 |
|
|
29 |
<%name%> |
|
30 |
|
|
31 |
<%street%> |
|
32 |
|
|
33 |
~ |
|
34 |
|
|
35 |
<%zipcode%> <%city%> |
|
36 |
|
|
37 |
<%country%> |
|
38 |
|
|
21 |
\setkomavar{title}{ |
|
22 |
\lieferschein~ |
|
23 |
\nr~<%donumber%> |
|
24 |
} |
|
25 |
\setkomavar*{date}{\datum} |
|
26 |
\setkomavar{date}{<%dodate%>} |
|
27 |
<%if cusordnumber%> |
|
28 |
\setkomavar*{yourref}{\unsereBestellnummer} |
|
29 |
\setkomavar{yourref}{<%cusordnumber%>} |
|
30 |
<%end if%> |
|
31 |
<%if ordnumber%>\setkomavar{orderID}{<%ordnumber%>}<%end if%> |
|
32 |
\setkomavar{fromname}{<%employee_name%>} |
|
33 |
\setkomavar{fromphone}{<%employee_tel%>} |
|
34 |
\setkomavar{fromemail}{<%employee_email%>} |
|
35 |
<%if globalprojectnumber%>\setkomavar{projectID}{<%globalprojectnumber%}><%end globalprojectnumber%> |
|
36 |
|
|
37 |
\setkomavar{transaction}{<%transaction_description%>} |
|
38 |
|
|
39 |
|
|
40 |
\begin{letter}{ |
|
41 |
\ifstr{<%shiptoname%>}{}{ % KEINE ABWEICHENDE LIEFERADRESSE |
|
42 |
<%name%>\strut\\ |
|
43 |
<%if department_1%><%department_1%>\\<%end if%> |
|
44 |
<%if department_2%><%department_2%>\\<%end if%> |
|
45 |
<%cp_givenname%> <%cp_name%>\strut\\ |
|
46 |
<%street%>\strut\\ |
|
47 |
<%zipcode%> <%city%>\strut\\ |
|
48 |
<%country%> \strut |
|
39 | 49 |
}{ % ABWEICHENDE LIEFERADRESSE (Aus Stammdaten oder Beleg) |
50 |
<%shiptoname%>\strut\\ |
|
51 |
<%if shiptocontact%> <%shiptocontact%><%end if%>\strut\\ |
|
52 |
<%shiptodepartment_1%>\strut\\ |
|
53 |
<%shiptodepartment_2%>\strut\\ |
|
54 |
<%shiptostreet%>\strut\\ |
|
55 |
<%shiptozipcode%> <%shiptocity%>\strut |
|
56 |
} % ende ifthenelse LIEFERADRESSE |
|
57 |
} |
|
40 | 58 |
|
41 |
<%shiptoname%> |
|
42 |
|
|
43 |
<%shiptostreet%> |
|
44 |
|
|
45 |
~ |
|
46 |
|
|
47 |
<%shiptozipcode%> <%shiptocity%> |
|
48 |
|
|
49 |
<%shiptocountry%> |
|
50 |
} % ende ifthenelse LIEFERADRESSE |
|
51 |
\end{minipage} |
|
52 |
|
|
53 |
|
|
54 |
\hfill |
|
55 |
\begin{minipage}[t]{6cm} |
|
56 |
\hfill{\LARGE\textbf{\lieferschein}} |
|
57 |
|
|
58 |
\vspace*{0.2cm} |
|
59 |
|
|
60 |
\hfill{\large\textbf{\nr ~<%donumber%>}} |
|
61 |
|
|
62 |
\vspace*{0.2cm} |
|
63 |
|
|
64 |
\datum:\hfill <%dodate%> |
|
65 |
|
|
66 |
\kundennummer:\hfill <%customernumber%> |
|
67 |
|
|
68 |
<%if cusordnumber%>\ihreBestellnummer:\hfill <%cusordnumber%><%end if%> |
|
69 |
|
|
70 |
<%if ordnumber%>\auftragsnummer:\hfill <%ordnumber%><%end if%> |
|
71 |
|
|
72 |
\ansprechpartner:\hfill <%employee_name%> |
|
73 |
|
|
74 |
\textTelefon \hfill <%employee_tel%> |
|
75 |
|
|
76 |
\textEmail \hfill <%employee_email%> |
|
77 |
|
|
78 |
<%if globalprojectnumber%> \projektnummer:\hfill <%globalprojectnumber%> <%end globalprojectnumber%> |
|
79 |
\end{minipage} |
|
80 |
|
|
81 |
\vspace*{1.5cm} |
|
82 |
|
|
59 |
\opening{}%muss existieren, damit seitenstil erzeugt wird. |
|
83 | 60 |
|
84 | 61 |
% |
85 | 62 |
% - longtable kann innerhalb der Tabelle umbrechen |
... | ... | |
136 | 113 |
\vspace{0.2cm} |
137 | 114 |
|
138 | 115 |
<%if notes%> |
139 |
\vspace{5mm} |
|
140 |
<%notes%> |
|
141 |
\vspace{5mm} |
|
116 |
<%notes%> |
|
117 |
\medskip |
|
142 | 118 |
<%end if%> |
143 | 119 |
|
120 |
|
|
144 | 121 |
<%if delivery_term%> |
145 | 122 |
\lieferung ~<%delivery_term.description_long%>\\ |
146 | 123 |
<%end delivery_term%> |
147 | 124 |
|
125 |
\end{letter} |
|
126 |
|
|
148 | 127 |
\end{document} |
Auch abrufbar als: Unified diff
new structure to sales_delivery_order.tex