Revision a7572e46
Von Marei Peischl vor fast 5 Jahren hinzugefügt
sales_order.tex | ||
---|---|---|
17 | 17 |
|
18 | 18 |
|
19 | 19 |
\begin{document} |
20 |
\setkomavar{title}{ |
|
21 |
\auftragsbestaetigung~ |
|
22 |
\nr~<%ordnumber%> |
|
23 |
} |
|
24 |
\setkomavar*{date}{\datum} |
|
25 |
\setkomavar{date}{<%orddate%>} |
|
26 |
<%if cusordnumber%> |
|
27 |
\setkomavar*{yourref}{\ihreBestellnummer} |
|
28 |
\setkomavar{yourref}{<%cusordnumber%>} |
|
29 |
<%end if%> |
|
30 |
<%if quonumber%>\setkomavar{quote}{<%quonumber%>}<%end if%> |
|
31 |
\setkomavar{customer}{<%customernumber%>} |
|
32 |
\setkomavar{fromname}{<%employee_name%>} |
|
33 |
\setkomavar{fromphone}{<%employee_tel%>} |
|
34 |
\setkomavar{fromemail}{<%employee_email%>} |
|
35 |
\setkomavar{transaction}{<%transaction_description%>} |
|
20 | 36 |
|
21 |
\begin{minipage}[t]{8cm} |
|
22 |
\scriptsize |
|
23 |
|
|
24 |
{\color{gray}\underline{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}} |
|
25 |
\normalsize |
|
26 |
|
|
27 |
\vspace*{0.3cm} |
|
28 |
|
|
29 |
<%name%> |
|
30 |
|
|
31 |
<%if department_1%><%department_1%><%end if%> |
|
32 |
|
|
33 |
<%if department_2%><%department_2%><%end if%> |
|
34 |
|
|
35 |
<%cp_givenname%> <%cp_name%> |
|
36 |
|
|
37 |
<%street%> |
|
38 |
|
|
39 |
~ |
|
40 |
|
|
41 |
<%zipcode%> <%city%> |
|
42 |
|
|
43 |
<%country%> |
|
44 |
\end{minipage} |
|
45 |
\hfill |
|
46 |
\begin{minipage}[t]{6cm} |
|
47 |
\hfill{\LARGE\textbf{\auftragsbestaetigung}} |
|
48 |
|
|
49 |
\vspace*{0.2cm} |
|
50 |
|
|
51 |
\hfill{\large\textbf{\nr ~<%ordnumber%>}} |
|
52 |
|
|
53 |
\vspace*{0.2cm} |
|
54 |
|
|
55 |
\datum:\hfill <%orddate%> |
|
56 |
|
|
57 |
\kundennummer:\hfill <%customernumber%> |
|
58 |
|
|
59 |
<%if cusordnumber%>\ihreBestellnummer:\hfill <%cusordnumber%><%end if%> |
|
60 |
|
|
61 |
<%if quonumber%>\angebot~\nr:\hfill <%quonumber%><%end if%> |
|
62 |
|
|
63 |
\ansprechpartner:\hfill <%employee_name%> |
|
64 |
|
|
65 |
\textTelefon \hfill <%employee_tel%> |
|
66 | 37 |
|
67 |
\textEmail \hfill <%employee_email%> |
|
68 |
\end{minipage} |
|
69 | 38 |
|
70 | 39 |
<%if shiptoname%> |
71 |
\vspace{0.8cm} |
|
72 |
\scriptsize \underline{\abweichendeLieferadresse:}\\ |
|
73 |
\normalsize <%shiptoname%> |
|
74 |
|
|
75 |
<%if shiptocontact%> <%shiptocontact%><%end if%> |
|
76 |
|
|
77 |
<%shiptodepartment_1%> |
|
78 |
|
|
79 |
<%shiptodepartment_2%> |
|
80 |
|
|
81 |
<%shiptostreet%> |
|
82 |
|
|
83 |
<%shiptozipcode%> <%shiptocity%> |
|
40 |
\makeatletter |
|
41 |
\begin{lrbox}\shippingAddressBox |
|
42 |
\parbox{\useplength{toaddrwidth}}{ |
|
43 |
\backaddr@format{\scriptsize\usekomafont{backaddress}% |
|
44 |
\strut abweichende Lieferadresse |
|
45 |
} |
|
46 |
\par\smallskip |
|
47 |
\setlength{\parskip}{\z@} |
|
48 |
\par |
|
49 |
\normalsize |
|
50 |
<%shiptoname%>\par |
|
51 |
<%if shiptocontact%> <%shiptocontact%><%end if%>\par |
|
52 |
<%shiptodepartment_1%>\par |
|
53 |
<%shiptodepartment_2%>\par |
|
54 |
<%shiptostreet%>\par |
|
55 |
<%shiptozipcode%> <%shiptocity%> |
|
56 |
} |
|
57 |
\end{lrbox} |
|
58 |
\makeatother |
|
84 | 59 |
<%end if%> |
85 |
\vspace*{1.5cm} |
|
86 | 60 |
|
87 |
\hfill |
|
61 |
\begin{letter}{ |
|
62 |
<%name%>\strut\\ |
|
63 |
<%if department_1%><%department_1%>\\<%end if%> |
|
64 |
<%if department_2%><%department_2%>\\<%end if%> |
|
65 |
<%cp_givenname%> <%cp_name%>\strut\\ |
|
66 |
<%street%>\strut\\ |
|
67 |
<%zipcode%> <%city%>\strut\\ |
|
68 |
<%country%> \strut |
|
69 |
} |
|
88 | 70 |
|
89 | 71 |
% Anrede nach Geschlecht unterscheiden |
90 |
\ifthenelse{\equal{<%cp_name%>}{}}{\anrede}{ |
|
91 |
\ifthenelse{\equal{<%cp_gender%>}{f}} |
|
92 |
{\anredefrau}{\anredeherr} <%cp_title%> <%cp_name%>,}\\ |
|
93 |
|
|
94 |
\auftragsformel\\ |
|
95 |
|
|
96 |
\vspace{0.5cm} |
|
97 |
|
|
98 |
|
|
99 |
% |
|
100 |
% - longtable kann innerhalb der Tabelle umbrechen |
|
101 |
% - da der Umbruch nicht von Lx-Office kontrolliert wird, kann man keinen |
|
102 |
% Übertrag machen |
|
103 |
% - Innerhalb des Langtextes <%longdescription%> wird nicht umgebrochen. |
|
104 |
% Falls das gewünscht ist, \\ mit \renewcommand umschreiben (siehe dazu: |
|
105 |
% http://www.lx-office.org/uploads/media/Lx-Office_Anwendertreffen_LaTeX-Druckvorlagen-31.01.2011_01.pdf) |
|
106 |
% |
|
107 |
\setlength\LTleft\parindent % Tabelle beginnt am linken Textrand |
|
108 |
\setlength\LTright{0pt} % Tabelle endet am rechten Textrand |
|
109 |
\begin{longtable}{@{}rrp{7cm}@{\extracolsep{\fill}}rrr@{}} |
|
110 |
% Tabellenkopf |
|
111 |
\hline |
|
112 |
\textbf{\position} & \textbf{\artikelnummer} & \textbf{\bezeichnung} & \textbf{\menge} & \textbf{\einzelpreis} & \textbf{\gesamtpreis} \\ |
|
113 |
\hline\\ |
|
114 |
\endhead |
|
115 |
|
|
116 |
% Tabellenkopf erste Seite |
|
117 |
\hline |
|
118 |
\textbf{\position} & \textbf{\artikelnummer} & \textbf{\bezeichnung} & \textbf{\menge} & \textbf{\einzelpreis} & \textbf{\gesamtpreis} \\ |
|
119 |
\hline\\[-0.5em] |
|
120 |
\endfirsthead |
|
121 |
|
|
122 |
% Tabellenende |
|
123 |
\\ |
|
124 |
\multicolumn{6}{@{}r@{}}{\weiteraufnaechsterseite} |
|
125 |
\endfoot |
|
126 |
|
|
127 |
% Tabellenende letzte Seite |
|
128 |
\hline\\ |
|
129 |
\multicolumn{5}{@{}l}{\nettobetrag} & <%subtotal%> \currency\\ |
|
130 |
<%foreach tax%> |
|
131 |
\multicolumn{5}{@{}l}{<%taxdescription%>} & <%tax%> \currency\\ |
|
132 |
<%end tax%> |
|
133 |
\multicolumn{5}{@{}l}{\textbf{\schlussbetrag}} & \textbf{<%ordtotal%>} \currency\\ |
|
134 |
\hline\hline\\ |
|
135 |
\endlastfoot |
|
136 |
|
|
137 |
% eigentliche Tabelle |
|
138 |
<%foreach number%> |
|
139 |
<%runningnumber%> & |
|
140 |
<%number%> & |
|
141 |
\textbf{<%description%>} & |
|
142 |
\raggedleft <%qty%> <%unit%> & |
|
143 |
<%sellprice%> \currency & |
|
144 |
\ifthenelse{\equal{<%p_discount%>}{0}}{}{\sffamily\scriptsize{(-<%p_discount%> \%)}} |
|
145 |
<%linetotal%> \currency \\* % kein Umbruch nach der ersten Zeile, damit Beschreibung und Langtext nicht getrennt werden |
|
146 |
|
|
147 |
<%if longdescription%> && \scriptsize <%longdescription%>\\<%end longdescription%> |
|
148 |
<%if reqdate%> && \scriptsize \lieferdatum: <%reqdate%>\\<%end reqdate%> |
|
149 |
<%if serialnumber%> && \scriptsize \seriennummer: <%serialnumber%>\\<%end serialnumber%> |
|
150 |
<%if ean%> && \scriptsize \ean: <%ean%>\\<%end ean%> |
|
151 |
<%if projectnumber%> && \scriptsize \projektnummer: <%projectnumber%>\\<%end projectnumber%> |
|
152 |
\\[-0.8em] |
|
153 |
<%end number%> |
|
154 |
|
|
155 |
\end{longtable} |
|
156 |
|
|
157 |
|
|
158 |
\vspace{0.2cm} |
|
72 |
\opening{ |
|
73 |
\ifstr{<%cp_name%>}{} |
|
74 |
{\anrede} |
|
75 |
{ |
|
76 |
\ifstr{<%cp_gender%>}{f} |
|
77 |
{\anredefrau} |
|
78 |
{\anredeherr} |
|
79 |
<%cp_title%> <%cp_name%>, |
|
80 |
} |
|
81 |
} |
|
82 |
\thispagestyle{kivitendo.letter.first} |
|
83 |
|
|
84 |
\auftragsformel |
|
85 |
|
|
86 |
\begin{PricingTabular*} |
|
87 |
% eigentliche Tabelle |
|
88 |
\FakeTable{ |
|
89 |
<%foreach number%>% |
|
90 |
<%runningnumber%> &% |
|
91 |
<%number%> &% |
|
92 |
\textbf{<%description%>}% |
|
93 |
<%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>% |
|
94 |
<%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>% |
|
95 |
<%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>% |
|
96 |
<%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>% |
|
97 |
<%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>% |
|
98 |
&% |
|
99 |
<%qty%> <%unit%> &% |
|
100 |
<%sellprice%>&% |
|
101 |
\ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}% |
|
102 |
<%linetotal%>\tabularnewline |
|
103 |
<%end number%> |
|
104 |
} |
|
105 |
\begin{PricingTotal} |
|
106 |
% Tabellenende letzte Seite |
|
107 |
\nettobetrag & <%subtotal%>\\ |
|
108 |
<%foreach tax%> |
|
109 |
<%taxdescription%> & <%tax%>\\ |
|
110 |
<%end tax%> |
|
111 |
\bfseries\schlussbetrag & \bfseries <%ordtotal%>\\ |
|
112 |
\end{PricingTotal} |
|
113 |
\end{PricingTabular*} |
|
159 | 114 |
|
160 | 115 |
<%if notes%> |
161 |
\vspace{5mm} |
|
162 |
<%notes%> |
|
163 |
\vspace{5mm} |
|
116 |
<%notes%> |
|
117 |
\medskip |
|
164 | 118 |
<%end if%> |
165 | 119 |
|
166 | 120 |
<%if delivery_term%> |
... | ... | |
168 | 122 |
<%end delivery_term%> |
169 | 123 |
|
170 | 124 |
<%if reqdate%> |
171 |
\lieferungErfolgtAm ~<%reqdate%>. \\
|
|
125 |
\lieferungErfolgtAm ~<%reqdate%>. |
|
172 | 126 |
<%end if%> |
173 | 127 |
|
174 |
\textit{\auftragpruefen} \\ \\ |
|
128 |
\textit{\auftragpruefen} |
|
129 |
|
|
130 |
\closing{\gruesse} |
|
175 | 131 |
|
176 |
\gruesse \\ \\ \\ |
|
177 |
<%employee_name%> |
|
132 |
\end{letter} |
|
178 | 133 |
|
179 | 134 |
\end{document} |
180 | 135 |
|
Auch abrufbar als: Unified diff
new structure to sales_order.tex