EK-Bericht Suchoptionen für Sollkonto und Erfassungsdatum
[kivitendo-erp.git] / templates / print / marei / sales_quotation.tex
1 \documentclass[paper=a4,fontsize=10pt]{scrartcl}
2 \usepackage{kiviletter}
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}{\datum}
28
29 \setkomavar{date}{<%transdate%>}
30 \setkomavar{customer}{<%customernumber%>}
31 \setkomavar{fromname}{<%employee_name%>}
32 \setkomavar{fromphone}{<%employee_tel%>}
33 \setkomavar{fromemail}{<%employee_email%>}
34 \setkomavar{title}{
35         \angebot~
36         <%quonumber%>%
37 }
38
39 \setkomavar{transaction}{<%transaction_description%>}
40
41 <%if shiptoname%>%
42 \makeatletter
43   \begin{lrbox}\shippingAddressBox
44   \parbox{\useplength{toaddrwidth}}{
45         \backaddr@format{\scriptsize\usekomafont{backaddress}%
46                 \strut\abweichendeLieferadresse
47         }
48         \par\smallskip
49         \setlength{\parskip}{\z@}
50         \par
51         \normalsize
52         <%shiptoname%>\par
53         <%if shiptocontact%> <%shiptocontact%><%end if%>\par
54         <%shiptodepartment_1%>\par
55         <%shiptodepartment_2%>\par
56         <%shiptostreet%>\par
57         <%shiptozipcode%> <%shiptocity%>%
58  }
59 \end{lrbox}
60 \makeatother
61 <%end if%>%
62
63
64 \begin{letter}{
65   <%name%>\strut\\
66   <%if department_1%><%department_1%>\\<%end if%>%
67   <%if department_2%><%department_2%>\\<%end if%>%
68   <%cp_givenname%> <%cp_name%>\strut\\
69   <%street%>\strut\\
70   <%zipcode%> <%city%>\strut\\
71   <%country%> \strut
72 }
73
74 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
75 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
76 \opening{
77         \Ifstr{<%cp_name%>}{}
78                 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
79                 {
80                 \Ifstr{<%cp_gender%>}{f}
81                         {\anredefrau}
82                         {\anredeherr}
83                         <%cp_title%> <%cp_name%>,
84                 }
85 }
86 \thispagestyle{kivitendo.letter.first}
87
88 \angebotsformel
89
90
91 \begin{PricingTabular*}
92 % eigentliche Tabelle
93 \FakeTable{
94 <%foreach number%>%
95 <%runningnumber%> &%
96 <%number%> &%
97 \textbf{<%description%>}%
98         <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
99         <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
100         <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
101         <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
102         <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
103         &%
104         <%qty%> <%unit%> &%
105         <%sellprice%>&%
106         \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
107                         <%linetotal%>\tabularnewline
108 <%end number%>%
109 }
110         \begin{PricingTotal}
111         % Tabellenende letzte Seite
112         \nettobetrag & <%subtotal%>\\
113         <%foreach tax%>%
114         <%taxdescription%> & <%tax%>\\
115         <%end tax%>%
116         \bfseries\schlussbetrag &  \bfseries <%ordtotal%>\\
117         \end{PricingTotal}
118 \end{PricingTabular*}
119
120 <%if notes%>%
121   <%notes%>%
122   \medskip
123 <%end if%>%
124
125 <%if delivery_term%>%
126   \lieferung ~<%delivery_term.description_long%>\\
127 <%end delivery_term%>%
128
129 \angebotdanke\\
130 <%if reqdate%>%
131 \angebotgueltig~<%reqdate%>.
132 <%end if%>%
133 \angebotfragen
134
135
136 \angebotagb
137
138 \closing{\gruesse}
139
140 \begin{minipage}{\textwidth}
141 \rule{\linewidth}{.2pt}\par
142 \auftragerteilt\par\bigskip
143 \nurort:\rule[-.5ex]{8cm}{.2pt}\ ,\den\ \rule[-.5ex]{5cm}{.2pt}\par\bigskip
144
145 \unterschrift/\stempel:\rule[-.5ex]{6cm}{.2pt}
146 \end{minipage}
147
148
149 \end{letter}
150 \end{document}