add some time-worked reporting
[freeside.git] / sql-ledger / templates / Dutch-sales_order.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     Telefoon & <%tel%>\\
33     Fax & <%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 <%ordnumber%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 <%pagebreak 90 27 48%>
48 \end{tabular*}
49
50   \rule{\textwidth}{2pt}
51   
52   \hfill
53   \begin{tabularx}{7cm}{Xr@{}}
54   \textbf{Subtotaal} & \textbf{<%sumcarriedforward%>} \\
55   \end{tabularx}
56
57 \newpage
58
59 \markright{<%company%>\hfill <%ordnumber%>}
60
61 \vspace*{-12pt}
62
63 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
64   \textbf{Nummer} & \textbf{Omschrijving} & \textbf{Aantal} &
65     \textbf{Eenheid} & \textbf{Prijs} & \textbf{Korting} & \textbf{Bedrag} \\
66   & Transport van <%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{V E R K O O P} \parbox{0.3cm}{\hfill} \textbf{B E S T E L L I N G}
91 \hfill
92 \begin{tabular}[t]{l@{\hspace{0.3cm}}l}
93   \textbf{Bestel Datum} & <%orddate%> \\
94 <%if reqdate%>
95   \textbf{Gewenste Leverdatum} & <%reqdate%> \\
96 <%end reqdate%>
97   \textbf{Bestel Nummer} & <%ordnumber%>
98 \end{tabular}
99
100 \vspace{1cm}
101
102 \begin{tabular*}{\textwidth}{@{}lp{\descrwidth}@{\extracolsep\fill}rlrrr@{}}
103   \textbf{Nummer} & \textbf{Omschrijving} & \textbf{Aantal} &
104     \textbf{Eenheid} & \textbf{Prijs} & \textbf{Korting} & \textbf{Bedrag} \\
105 <%foreach number%>
106   <%number%> & <%description%> & <%qty%> &
107     <%unit%> & <%sellprice%> & <%discount%> & <%linetotal%> \\
108 <%end number%>
109 \end{tabular*}
110
111
112 \parbox{\textwidth}{
113 \rule{\textwidth}{2pt}
114
115 \vspace{0.2cm}
116
117 \hfill
118 \begin{tabularx}{7cm}{Xr@{}}
119   \textbf{Subtotaal} & \textbf{<%subtotal%>} \\
120 <%foreach tax%>
121   <%taxdescription%> over <%taxbase%> & <%tax%>\\
122 <%end tax%>
123   \hline
124   \textbf{Totaal} & \textbf{<%ordtotal%>}\\
125 \end{tabularx}
126
127 \vspace{0.3cm}
128
129 \hfill
130   Alle prijzen in \textbf{<%currency%>}.
131
132 \vspace{12pt}
133
134 <%if notes%>
135   <%notes%>
136 <%end if%>
137
138 }
139
140 \end{document}
141