Anzahlungsrechnung: Bei Schlussrechnung das Transferkonto ausgleichen
[kivitendo-erp.git] / templates / print / marei / purchase_delivery_order.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{}{}{\einkaufslieferschein}{<%donumber%>}{<%dodate%>}
17
18 \setkomavar*{date}{\datum}
19 \setkomavar{date}{<%dodate%>}
20
21 \setkomavar{fromname}{<%employee_name%>}
22 \setkomavar{fromphone}{<%employee_tel%>}
23 \setkomavar{fromemail}{<%employee_email%>}
24 \setkomavar{title}{
25   \einkaufslieferschein~\nr ~<%donumber%>%
26 }
27 <%if ordnumber%>
28   \setkomavar{orderID}{<%ordnumber%>}
29 <%end if%>%
30 <%if cusordnumber%>%
31   \setkomavar*{yourref}{\unsereBestellnummer}
32   \setkomavar{yourref}{<%cusordnumber%>}
33 <%end if%>%
34 \setkomavar{transaction}{<%transaction_description%>}
35
36 <%if globalprojectnumber%>%
37   \setkomavar{projectID}{<%globalprojectnumber%>}
38 <%end globalprojectnumber%>%
39
40 \setkomavar{transaction}{<%transaction_description%>}
41 \setkomafont{extraDescription}{\scriptsize}
42
43 <%if shiptoname%>%
44 \makeatletter
45 \begin{lrbox}\shippingAddressBox
46   \parbox{\useplength{toaddrwidth}}{
47     \backaddr@format{\scriptsize\usekomafont{backaddress}%
48       \strut\abweichendeLieferadresse
49     }
50     \par\smallskip
51     \setlength{\parskip}{\z@}
52     \par
53     \normalsize
54     <%shiptoname%>\par
55     <%if shiptocontact%> <%shiptocontact%><%end if%>\par
56     <%shiptodepartment_1%>\par
57     <%shiptodepartment_2%>\par
58     <%shiptostreet%>\par
59     <%shiptozipcode%> <%shiptocity%>%
60   }
61 \end{lrbox}
62 \makeatother
63 <%end if%>%
64
65
66 \begin{document}
67
68
69 \begin{letter}{
70 <%name%>\strut\\
71 <%if department_1%><%department_1%>\\<%end if%>%
72 <%if department_2%><%department_2%>\\<%end if%>%
73 <%cp_givenname%> <%cp_name%>\strut\\
74 <%street%>\strut\\
75 <%zipcode%> <%city%>\strut\\
76 <%country%> \strut
77 }
78
79
80 \opening{}
81 \thispagestyle{kivitendo.letter.first}
82
83 \begin{PricingTabular*}[columns={pos,amount,desc}]
84   % eigentliche Tabelle
85   \FakeTable{
86   <%foreach number%>%
87   <%runningnumber%> &
88   <%qty%> <%unit%> &
89   \textbf{<%description%>}
90     <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
91     <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
92     <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
93     <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
94     <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
95     <%foreach si_number%>%
96     <%if si_chargenumber%>\ExtraDescription{\charge: <%si_chargenumber%> <%if si_bestbefore%> \mhd: <%si_bestbefore%><%end if%><%si_qty%>~<%si_unit%><%end si_chargenumber%>}%
97     <%end si_number%>%
98     \tabularnewline
99     <%end number%>%
100   }
101 \end{PricingTabular*}
102
103 \medskip
104
105 <%if notes%>%
106 <%notes%>%
107 \medskip
108 <%end if%>%
109
110 <%if delivery_term%>%
111 \lieferung ~<%delivery_term.description_long%>\\
112 <%end delivery_term%>%
113
114 \end{letter}
115
116 \end{document}