b4632436f520f02c0bafa4a11680f12f0d35f1c7
[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%>\ifhmode\\\fi<%salesman_name%>
22 }
23
24 \begin{minipage}[t]{8cm}
25   \scriptsize
26
27   {\color{gray}\underline{\firma\ $\cdot$ \strasse\ $\cdot$ \ort}}
28   \normalsize
29
30   \vspace*{0.3cm}
31
32   <%name%>
33
34   <%if department_1%><%department_1%><%end if%>
35
36   <%if department_2%><%department_2%><%end if%>
37
38   <%cp_givenname%> <%cp_name%>
39
40   <%street%>
41
42   ~
43
44   <%zipcode%> <%city%>
45
46   <%country%>
47 \end{minipage}
48 \hfill
49 \begin{minipage}[t]{6cm}
50   \hfill{\LARGE\textbf{\angebot}}
51
52   \vspace*{0.2cm}
53
54   \hfill{\large\textbf{\nr ~<%quonumber%>}}
55
56   \vspace*{0.2cm}
57
58   \datum:\hfill <%transdate%>
59
60   \kundennummer:\hfill <%customernumber%>
61
62   \ansprechpartner:\hfill <%employee_name%>
63
64   \textTelefon \hfill <%employee_tel%>
65
66   \textEmail \hfill <%employee_email%>
67
68 \end{minipage}
69
70 <%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%>
84 <%end if%>
85 \vspace*{1.5cm}
86
87 \hfill
88
89
90 \begin{letter}{
91   <%name%>\\
92   <%if department_1%><%department_1%><%end if%>\\
93   <%if department_2%><%department_2%><%end if%>\\
94   <%cp_givenname%> <%cp_name%>\\
95   <%street%>\\
96   <%zipcode%> <%city%>\\
97   <%country%>
98 }
99
100 % Anrede nach Geschlecht unterscheiden
101 \opening{
102         \ifstr{<%cp_name%>}{}
103                 {\anrede}
104                 {
105                 \ifstr{<%cp_gender%>}{f}
106                         {\anredefrau}
107                         {\anredeherr}
108                         <%cp_title%> <%cp_name%>,
109                 }
110 }
111 \thispagestyle{kivitendo.letter.first}
112
113 \angebotsformel\\
114
115
116 \begin{PricingTabular}
117         % Tabellenende letzte Seite
118         \midrule
119         \multicolumn{5}{@{}l}{\nettobetrag} & <%subtotal%>\\
120         <%foreach tax%>
121         \multicolumn{5}{@{}l}{<%taxdescription%>} & <%tax%>\\
122         <%end tax%>
123         \multicolumn{5}{@{}l}{\bfseries\schlussbetrag} &  \textbf{<%ordtotal%>}\\
124         \bottomrule
125         \endlastfoot
126 % eigentliche Tabelle
127 <%foreach number%>
128 <%runningnumber%> &
129 <%number%> &
130 \textbf{<%description%>}
131         <%if longdescription%> \newline\scriptsize <%longdescription%><%end longdescription%>
132         <%if serialnumber%> \newline\scriptsize \seriennummer: <%serialnumber%><%end serialnumber%>
133         <%if ean%> \newline\scriptsize \ean: <%ean%><%end ean%>
134         <%if projectnumber%>\newline\scriptsize \projektnummer: <%projectnumber%><%end projectnumber%>
135         &
136         <%qty%> <%unit%> &
137         <%sellprice%>&
138         \ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}
139                         <%linetotal%>\\
140 <%end number%>
141 \end{PricingTabular}
142
143 <%if notes%>
144   <%notes%>
145   \medskip
146 <%end if%>
147
148 <%if delivery_term%>
149   \lieferung ~<%delivery_term.description_long%>\\
150 <%end delivery_term%>
151
152 \angebotdanke\\
153 <%if reqdate%>
154 \angebotgueltig~<%reqdate%>.
155 <%end if%>
156 \angebotfragen
157
158
159 \angebotagb
160
161 \closing{\gruesse}
162
163 \begin{minipage}{\textwidth}
164 \auftragerteilt\par\bigskip
165 \nurort:\rule[-.5ex]{8cm}{.2pt}\ ,\den\ \rule[-.5ex]{5cm}{.2pt}\par\bigskip
166
167 \unterschrift/\stempel:\rule[-.5ex]{6cm}{.2pt}
168 \end{minipage}
169
170
171 \end{letter}
172 \end{document}