import sql-ledger 2.4.4
[freeside.git] / sql-ledger / templates / German-invoice.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[latin1]{inputenc}
5 \setlength{\voffset}{0.5cm}
6 \setlength{\hoffset}{-2.0cm}
7 \setlength{\topmargin}{0cm}
8 \setlength{\headheight}{0.5cm}
9 \setlength{\headsep}{1cm}
10 \setlength{\topskip}{0pt}
11 \setlength{\oddsidemargin}{1.0cm}
12 \setlength{\evensidemargin}{1.0cm}
13 \setlength{\textwidth}{19.2cm}
14 \setlength{\textheight}{24.5cm}
15 \setlength{\footskip}{1cm}
16 \setlength{\parindent}{0pt}
17 \renewcommand{\baselinestretch}{1}
18 \begin{document}
19
20 \newlength{\descrwidth}\setlength{\descrwidth}{10cm}
21
22 \newsavebox{\hdr}
23 \sbox{\hdr}{
24   \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
25
26   \parbox{\textwidth}{
27     \parbox[b]{12cm}{
28       <%company%>
29       
30       <%address%>}\hfill
31     \begin{tabular}[b]{rr@{}}
32     Telefon & <%tel%>\\
33     Telefax & <%fax%>
34     \end{tabular}
35
36     \rule[1.5ex]{\textwidth}{0.5pt}
37   }
38 }
39     
40 \fontfamily{cmss}\fontshape{n}\selectfont
41
42 \markboth{<%company%>\hfill <%invnumber%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 <%pagebreak 90 27 37%>
48 \end{tabular*}
49
50   \rule{\textwidth}{2pt}
51   
52   \hfill
53   \begin{tabularx}{7cm}{Xr@{}}
54   \textbf{Subtotal} & \textbf{<%sumcarriedforward%>} \\
55   \end{tabularx}
56
57 \newpage
58
59 \markright{<%company%>\hfill <%invnumber%>}
60
61 \vspace*{-12pt}
62
63 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64   \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
65     \textbf{Einh} & \textbf{Preis} & \textbf{Rab} & \textbf{Total} \\
66   & Übertrag von Seite <%lastpage%> & & & & & <%sumcarriedforward%> \\
67 <%end pagebreak%>
68
69
70 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
71
72 \vspace*{2cm}
73
74 <%name%>
75
76 <%address1%>
77
78 <%if address2%>
79 <%address2%>
80 <%end address2%>
81
82 <%city%> <%state%> <%zipcode%>
83
84 <%if country%>
85 <%country%>
86 <%end country%>
87
88 \vspace{3.5cm}
89
90 \textbf{R E C H N U N G}
91 \hfill
92 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
93   \textbf{Datum} & <%invdate%> \\
94   \textbf{Nummer} & <%invnumber%> \\
95 \end{tabular}
96
97 \vspace{1cm}
98
99 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
100   \textbf{Nummer} & \textbf{Artikel} & \textbf{Anz} &
101     \textbf{Einh} & \textbf{Preis} & \textbf{Rab} & \textbf{Total} \\
102 <%foreach number%>
103   <%number%> & <%description%> & <%qty%> &
104     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
105 <%end number%>
106 \end{tabular*}
107
108
109 \parbox{\textwidth}{
110 \rule{\textwidth}{2pt}
111
112 \vspace{0.2cm}
113
114 \hfill
115 \begin{tabularx}{7cm}{Xr@{}}
116   \textbf{Zwischensumme} & \textbf{<%subtotal%>} \\
117 <%foreach tax%>
118   <%taxdescription%> auf <%taxbase%> & <%tax%> \\
119 <%end tax%>
120   \hline
121   \textbf{Total} & \textbf{<%invtotal%>} \\
122 <%if paid%>
123   \textbf{Bezahlt} & <%paid%> \\
124 <%end paid%>
125 <%if total%>
126   \textbf{Bezahlbar} & \textbf{<%total%>} \\
127 <%end total%>
128 \end{tabularx}
129
130 \vspace{0.3cm}
131
132 \hfill
133   Alle Preise in \textbf{<%currency%>}.
134
135 \vspace{12pt}
136
137 <%if notes%>
138   <%notes%>
139 <%end if%>
140
141 }
142
143 %\vfill
144 %\centerline{\textbf{salute}}
145
146 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
147
148 \footnotetext[1]{\tiny
149 Rechnung ist bezahlbar innerhalb von <%terms%> Tagen.
150 Nach dem <%duedate%> werden Zinsen zu einem
151 monatlichen Satz von 1.5\% verrechnet.
152 Waren bleiben im Besitz von <%company%> bis die Rechnung voll bezahlt ist.
153 Rückgaben werden mit 10 Prozent Lagergebühren belastet. Beschädigte Waren
154 und Waren ohne eine Rückgabenummer werden nicht entgegengenommen.
155 }
156
157 \end{document}
158
159