Anzahlungsrechnung: Bei Schlussrechnung das Transferkonto ausgleichen
[kivitendo-erp.git] / templates / print / marei / proforma.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%>}{\proformarechnung}{<%ordnumber%>}{<%invdate%>}
17
18
19 \begin{document}
20
21 \setkomavar{title}{
22   \proformarechnung~
23   \nr ~<%ordnumber%>%
24 }
25 \setkomavar*{date}{\datum}
26
27 \setkomavar{date}{<%orddate%>}
28 \setkomavar{customer}{<%customernumber%>}
29 <%if cusordnumber%>%
30 \setkomavar*{yourref}{\ihreBestellnummer}
31 \setkomavar{yourref}{<%cusordnumber%>}
32 <%end if%>%
33 <%if quonumber%>\setkomavar{quote}{<%quonumber%>}<%end if%>%
34 \setkomavar{fromname}{<%employee_name%>}
35 \setkomavar{fromphone}{<%employee_tel%>}
36 \setkomavar{fromemail}{<%employee_email%>}
37 \setkomavar{transaction}{<%transaction_description%>}
38
39 <%if shiptoname%>%
40 \makeatletter
41 \begin{lrbox}\shippingAddressBox
42   \parbox{\useplength{toaddrwidth}}{
43     \backaddr@format{\scriptsize\usekomafont{backaddress}%
44       \strut\abweichendeLieferadresse
45     }
46     \par\smallskip
47     \setlength{\parskip}{\z@}
48     \par
49     \normalsize
50     <%shiptoname%>\par
51     <%if shiptocontact%> <%shiptocontact%><%end if%>\par
52     <%shiptodepartment_1%>\par
53     <%shiptodepartment_2%>\par
54     <%shiptostreet%>\par
55     <%shiptozipcode%> <%shiptocity%>%
56   }
57 \end{lrbox}
58 \makeatother
59 <%end if%>%
60
61 \begin{letter}{
62 <%name%>\strut\\
63 <%if department_1%><%department_1%>\\<%end if%>%
64 <%if department_2%><%department_2%>\\<%end if%>%
65 <%cp_givenname%> <%cp_name%>\strut\\
66 <%street%>\strut\\
67 <%zipcode%> <%city%>\strut\\
68 <%country%> \strut
69 }
70
71 % Bei Kontaktperson Anrede nach Geschlecht unterscheiden.
72 % Bei natürlichen Personen persönliche Anrede, sonst allgemeine Anrede.
73 \opening{
74 \Ifstr{<%cp_name%>}{}
75 {<%if natural_person%><%greeting%> <%name%>,<%else%>\anrede<%end if%>}
76   {
77     \Ifstr{<%cp_gender%>}{f}
78         {\anredefrau}
79         {\anredeherr}
80       <%cp_title%> <%cp_name%>,
81     }
82   }
83 \thispagestyle{kivitendo.letter.first}
84
85 \auftragsformel
86
87 \begin{PricingTabular*}%
88   % eigentliche Tabelle
89   \FakeTable{%
90   <%foreach number%>%
91   <%runningnumber%> &%
92   <%number%> &%
93   \textbf{<%description%>}%
94   <%if longdescription%>\ExtraDescription{<%longdescription%>}<%end longdescription%>%
95   <%if reqdate%>\ExtraDescription{\lieferdatum: <%reqdate%>}<%end reqdate%>%
96   <%if serialnumber%>\ExtraDescription{\seriennummer: <%serialnumber%>}<%end serialnumber%>%
97   <%if ean%>\ExtraDescription{\ean: <%ean%>}<%end ean%>%
98   <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
99   &%
100   <%qty%> <%unit%> &%
101   <%sellprice%>&%
102   \Ifstr{<%p_discount%>}{0}{}{\sffamily\scriptsize{(-<%p_discount%>\,\%)}}%
103     <%linetotal%>\tabularnewline%
104     <%end number%>%
105   }%
106   \begin{PricingTotal}%
107     % Tabellenende letzte Seite%
108     \nettobetrag & <%subtotal%>\\%
109     <%foreach tax%>%
110     <%taxdescription%> & <%tax%>\\%
111     <%end tax%>%
112     \bfseries\schlussbetrag &  \bfseries <%invtotal%>\\%
113   \end{PricingTotal}%
114 \end{PricingTabular*}
115
116 <%if notes%>%
117 <%notes%>%
118 \medskip
119 <%end if%>%
120
121 <%if reqdate%>%
122 \lieferungErfolgtAm ~<%reqdate%>. \\
123 <%end if%>%
124
125 \textit{\auftragpruefen}
126
127 \closing{\gruesse}
128
129 \end{letter}
130
131 \end{document}
132