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