Merge branch 'master' of github.com:kivitendo/kivitendo-erp
[kivitendo-erp.git] / templates / print / Standard / statement.tex
1 \documentclass[twoside]{scrartcl}
2 \usepackage[frame]{xy}
3 \usepackage{tabularx}
4 \usepackage[utf8]{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}{17cm}
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}{9cm}
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]{rrr@{}}
32     Tel & <%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 <%statementdate%>}{\usebox{\hdr}}
43
44 \pagestyle{myheadings}
45 %\thispagestyle{empty}     use this with letterhead paper
46
47 \fontfamily{cmss}\fontsize{10pt}{12pt}\selectfont
48
49 \vspace*{1.5cm}
50
51 \parbox[t]{1cm}{\hfill}
52 \parbox[t]{10.5cm}{
53
54 <%name%>
55
56 <%street%>
57
58 <%zipcode%>
59
60 <%city%>
61
62 <%country%>
63
64 }
65 \parbox[t]{7.5cm}{
66 <%if customerphone%>
67 Tel: <%customerphone%>
68 <%end customerphone%>
69
70 <%if customerfax%>
71 Fax: <%customerfax%>
72 <%end customerfax%>
73
74 <%email%>
75 }
76 \hfill
77
78 \vspace{1cm}
79
80 \textbf{S T A T E M E N T} \hfill
81
82 \hfill <%statementdate%>
83
84 \vspace{2cm}
85
86 \begin{tabular*}{\textwidth}{@{}l@{\extracolsep\fill}ccrrrr@{}}
87   \textbf{Invoice \#} & \textbf{Date} & \textbf{Due} &
88   \textbf{Current} & \textbf{30} & \textbf{60} & \textbf{90+} \\
89 <%foreach invnumber%>
90   <%invnumber%> & <%invdate%> & <%duedate%> &
91   <%c0%> & <%c30%> & <%c60%> & <%c90%> \\
92 <%end invnumber%>
93 \textbf{Subtotal} & & & <%c0total%> & <%c30total%> & <%c60total%> & <%c90total%>
94 \end{tabular*}
95 \rule{\textwidth}{1pt}
96
97 \vspace{1cm}
98
99 \hfill
100 \begin{tabularx}{7cm}{Xr@{}}
101   \textbf{Total outstanding} & <%total%>
102 \end{tabularx}
103
104 \vfill
105
106 Please make check payable to <%company%>
107
108 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
109
110 \footnotetext[1]{\tiny
111 }
112
113 \end{document}
114