efa211028e45b17671bdafd65706c70d11a19dd8
[kivitendo-erp.git] / sales_quotation.tex
1 \PassOptionsToPackage{faketable}{kiviletter}
2 \input{inheaders.tex}
3
4
5 % Variablen, die in settings verwendet werden
6 \newcommand{\lxlangcode} {<%template_meta.language.template_code%>}
7 \newcommand{\lxmedia} {<%media%>}
8 \newcommand{\lxcurrency} {<%currency%>}
9 \newcommand{\kivicompany} {<%employee_company%>}
10
11 % settings: Einstellungen, Logo, Briefpapier, Kopfzeile, Fusszeile
12 \input{insettings.tex}
13
14
15 % laufende Kopfzeile:
16 \ourhead{\kundennummer}{<%customernumber%>}{\angebot}{<%quonumber%>}{<%transdate%>}
17
18
19 \begin{document}
20
21 \setkomavar{signature}{%
22 <%employee_company%>%
23 \ifhmode\\\fi
24 <%salesman_name%>%
25 }
26
27 \setkomavar{date}{<%transdate%>}
28 \setkomavar{customer}{<%customernumber%>}
29 \setkomavar{fromname}{<%employee_name%>}
30 \setkomavar{fromphone}{<%employee_tel%>}
31 \setkomavar{fromemail}{<%employee_email%>}
32 \setkomavar{title}{
33         \angebot
34         \par
35         \medskip
36         \large\nr ~<%quonumber%>
37 }
38
39 %\begin{minipage}[t]{8cm}
40 %  \scriptsize
41 %
42 %  {\color{gray}\underline{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}}
43 %  \normalsize
44 %
45 %  \vspace*{0.3cm}
46 %
47 %  <%name%>
48 %
49 %  <%if department_1%><%department_1%><%end if%>
50 %
51 %  <%if department_2%><%department_2%><%end if%>
52 %
53 %  <%cp_givenname%> <%cp_name%>
54 %
55 %  <%street%>
56 %
57 %  ~
58 %
59 %  <%zipcode%> <%city%>
60 %
61 %  <%country%>
62 %\end{minipage}
63 %\hfill
64 %\begin{minipage}[t]{6cm}
65 %  \hfill{\LARGE\textbf{\angebot}}
66 %
67 %  \vspace*{0.2cm}
68 %
69 %  \hfill{\large\textbf{\nr ~<%quonumber%>}}
70 %
71 %  \vspace*{0.2cm}
72 %
73 %  \datum:\hfill <%transdate%>
74 %
75 %  \kundennummer:\hfill <%customernumber%>
76 %
77 %  \ansprechpartner:\hfill <%employee_name%>
78 %
79 %  \textTelefon \hfill <%employee_tel%>
80 %
81 %  \textEmail \hfill <%employee_email%>
82 %
83 %\end{minipage}
84 %
85 %<%if shiptoname%>
86 %  \vspace{0.8cm}
87 %  \scriptsize \underline{\abweichendeLieferadresse:}\\
88 %  \normalsize    <%shiptoname%>
89 %
90 %                 <%if shiptocontact%> <%shiptocontact%><%end if%>
91 %
92 %                 <%shiptodepartment_1%>
93 %
94 %                  <%shiptodepartment_2%>
95 %
96 %                  <%shiptostreet%>
97 %
98 %                  <%shiptozipcode%> <%shiptocity%>
99 %<%end if%>
100 %\vspace*{1.5cm}
101 %
102 %\hfill
103
104
105 \begin{letter}{
106   <%name%>\strut\\
107   <%if department_1%><%department_1%>\\<%end if%>
108   <%if department_2%><%department_2%>\\<%end if%>
109   <%cp_givenname%> <%cp_name%>\strut\\
110   <%street%>\strut\\
111   <%zipcode%> <%city%>\strut\\
112   <%country%> \strut
113 }
114
115 % Anrede nach Geschlecht unterscheiden
116 \opening{
117         \ifstr{<%cp_name%>}{}
118                 {\anrede}
119                 {
120                 \ifstr{<%cp_gender%>}{f}
121                         {\anredefrau}
122                         {\anredeherr}
123                         <%cp_title%> <%cp_name%>,
124                 }
125 }
126 \thispagestyle{kivitendo.letter.first}
127
128 \angebotsformel
129
130
131 \begin{PricingTabular}
132         % Tabellenende letzte Seite
133         \midrule
134         \multicolumn{5}{@{}l}{\nettobetrag} & <%subtotal%>\\
135         <%foreach tax%>
136         \multicolumn{5}{@{}l}{<%taxdescription%>} & <%tax%>\\
137         <%end tax%>
138         \multicolumn{5}{@{}l}{\bfseries\schlussbetrag} &  \textbf{<%ordtotal%>}\\
139         \bottomrule
140         \endlastfoot
141 % eigentliche Tabelle
142 <%foreach number%>
143 <%runningnumber%> &
144 <%number%> &
145 \textbf{<%description%>}
146         <%if longdescription%> \newline\scriptsize <%longdescription%><%end longdescription%>
147         <%if serialnumber%> \newline\scriptsize \seriennummer: <%serialnumber%><%end serialnumber%>
148         <%if ean%> \newline\scriptsize \ean: <%ean%><%end ean%>
149         <%if projectnumber%>\newline\scriptsize \projektnummer: <%projectnumber%><%end projectnumber%>
150         &
151         <%qty%> <%unit%> &
152         <%sellprice%>&
153         \ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}
154                         <%linetotal%>\tabularnewline
155 <%end number%>
156 \end{PricingTabular}
157
158 <%if notes%>
159   <%notes%>
160   \medskip
161 <%end if%>
162
163 <%if delivery_term%>
164   \lieferung ~<%delivery_term.description_long%>\\
165 <%end delivery_term%>
166
167 \angebotdanke\\
168 <%if reqdate%>
169 \angebotgueltig~<%reqdate%>.
170 <%end if%>
171 \angebotfragen
172
173
174 \angebotagb
175
176 \closing{\gruesse}
177
178 \begin{minipage}{\textwidth}
179 \rule{\linewidth}{.2pt}\par
180 \auftragerteilt\par\bigskip
181 \nurort:\rule[-.5ex]{8cm}{.2pt}\ ,\den\ \rule[-.5ex]{5cm}{.2pt}\par\bigskip
182
183 \unterschrift/\stempel:\rule[-.5ex]{6cm}{.2pt}
184 \end{minipage}
185
186
187 \end{letter}
188 \end{document}