add some time-worked reporting
[freeside.git] / sql-ledger / templates / Brazilian_Portuguese-statement.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]{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]{.5\textwidth}{
53 <%name%>\\
54 <%address1%>\\
55 <%if address2%>
56 <%address2%>
57 <%end address2%>\\
58 <%city%> <%state%> <%zipcode%>\\
59 <%if country%>
60 <%country%>
61 <%end country%>\\
62
63 }
64 \parbox[t]{.4\textwidth}{
65 <%if customerphone%>
66 Tel: <%customerphone%>
67 <%end customerphone%>
68
69 <%if customerfax%>
70 Fax: <%customerfax%>
71 <%end customerfax%>
72
73 <%email%>
74 }
75 \hfill
76
77 \vspace{1cm}
78
79 \textbf{RELATÓRIO} \hfill \textbf{<%statementdate%>}
80
81 \vspace{2cm}
82
83 \begin{tabular*}{\textwidth}{|l@{\extracolsep\fill}ccrrrr|}
84   \hline
85   \textbf{Número da Fatura \#} & \textbf{Data} & \textbf{Prazo} &
86   \textbf{Atual} & \textbf{30} & \textbf{60} & \textbf{90+} \\
87   \hline
88 <%foreach invnumber%>
89   <%invnumber%> & <%invdate%> & <%duedate%> &
90   <%c0%> & <%c30%> & <%c60%> & <%c90%> \\
91 <%end invnumber%>
92   \multicolumn{7}{|l|}{\mbox{}} \\
93   \hline
94   \textbf{Subtotal} & & & <%c0total%> & <%c30total%> & <%c60total%> & <%c90total%> \\
95   \hline
96 \end{tabular*}
97
98 \vspace{0.5cm}
99
100 \hfill
101 \begin{tabularx}{7cm}{Xr@{}}
102   \textbf{Totais} & \textbf{<%total%>}
103 \end{tabularx}
104
105 \vfill
106
107 Favor pagar com <%company%>
108
109 \end{document}
110