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