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