Annotation of RT/Invoicing/invoice.tex.tt, Revision 1.12
1.1 andrew 1: [% USE Latex -%]
2: [% FILTER latex("pdf") -%]
1.11 andrew 3: % $AFresh1: invoice.tex.tt,v 1.10 2011/03/22 03:21:30 andrew Exp $
1.1 andrew 4: \documentclass[oneside]{report}
5: \usepackage[top=1in, bottom=1in, left=.75in, right=.75in]{geometry}
6: \usepackage{multicol}
7: \usepackage{fancyhdr}
8: \usepackage{invoice}
9:
10: \pagestyle{fancy}
11:
1.12 ! andrew 12: \lhead{[% organization | latex_encode %]}
1.2 andrew 13: \chead{Invoice \#\textbf{[% id | format('%06d') | latex_encode %]}}
1.1 andrew 14: \rhead{Page {\thepage}}
15:
1.11 andrew 16: \lfoot{[% info.0 | latex_encode(except = "\\{}") %]}
1.1 andrew 17: \cfoot{}
1.11 andrew 18: \rfoot{[% info.1 | latex_encode(except = "\\{}") %]}
1.1 andrew 19:
20: \begin{document}
21: \thispagestyle{empty}
1.6 andrew 22: \vspace*{-.75in}
1.1 andrew 23: \begin{multicols}{2}
1.11 andrew 24: \parbox[t][1.625in]{\linewidth}{\large [% from | latex_encode(except = "\\{}") %] }
1.1 andrew 25:
1.11 andrew 26: \parbox[t][1.5in]{\linewidth}{\Large [% to | latex_encode(except = "\\{}") %] }
1.1 andrew 27:
28: \columnbreak
29:
30: \begin{flushright}
31:
32: \begin{tabular}{ | p{3in} | }
33: \hline
34: LOGO \\
35: \hline
36: \end{tabular}
37:
38: \hfill
39: \vfill
40:
41: \begin{tabular}{ | r l | }
42: \hline
1.3 andrew 43: Invoice No. & \textbf{[% id | format('%06d') | latex_encode %]} \\
1.4 andrew 44: %Page & {\thepage} \\
1.3 andrew 45: Invoice Date & \today \\
1.4 andrew 46: [%- IF start %]
1.10 andrew 47: From & [% start | latex_encode %] \\
1.4 andrew 48: [%- END %]
49: [%- IF end- %]
1.10 andrew 50: Through & [% end | latex_encode %] \\
1.4 andrew 51: [%- END %]
1.8 andrew 52: Invoice Total & [% total | format('$%.2f') | latex_encode %] \\
1.3 andrew 53: [% IF past_due -%]
1.8 andrew 54: Past Due & [% past_due | format('$%.2f') | latex_encode %] \\
1.3 andrew 55: [%- END %]
56: [%- IF total_due -%]
1.8 andrew 57: Total Due & [% total_due | format('$%.2f') | latex_encode %] \\
1.3 andrew 58: [%- END %]
1.1 andrew 59: \hline
1.11 andrew 60: \multicolumn{2}{|c|}{[% info.0 | latex_encode(except = "\\{}") %]} \\
61: \multicolumn{2}{|c|}{[% info.1 | latex_encode(except = "\\{}") %]} \\
1.1 andrew 62: \hline
63: \end{tabular}
64:
65: \end{flushright}
66:
67: \end{multicols}
68:
69: \begin{invoice}{USD}{0}
1.7 andrew 70:
71: [%- FOR p IN projects %]
1.2 andrew 72: \ProjectTitle{[% p.title | latex_encode %]}%
1.7 andrew 73: [%- IF p.detail %]
74: \\\multicolumn{5}{l}{[% p.detail | latex_encode %]}\\%
75: [% END -%]
1.2 andrew 76:
1.1 andrew 77: [%- FOR f IN p.fees %]
1.7 andrew 78: \Fee{[% f.contents | latex_encode %]}{[% f.rate | latex_encode %]}{[% f.count | latex_encode %]}%
1.2 andrew 79: [%- IF f.detail %]
1.3 andrew 80: \multicolumn{5}{l}{\small \textbullet \ [% f.detail | latex_encode %]}\\%
1.2 andrew 81: [% END -%]
1.1 andrew 82: [%- END -%]
1.7 andrew 83:
1.1 andrew 84: [%- FOR e IN p.expenses %]
1.7 andrew 85: \EBC{[% e.contents | latex_encode %]}{[% e.amount | latex_encode %]}%
1.2 andrew 86: [%- IF e.detail %]
1.3 andrew 87: \multicolumn{5}{l}{\small \textbullet \ [% e.detail | latex_encode %]}\\%
1.2 andrew 88: [% END -%]
1.1 andrew 89: [%- END -%]
1.7 andrew 90:
91: [%- END # projects %]
92:
93: [%- IF discount %]
94: \\\Discount{[% discount.contents | latex_encode %]}{[% discount.amount | latex_encode %]}\\%
95: [%- END %]
96:
1.1 andrew 97: \end{invoice}
98:
99: \end{document}
100: [% END -%]
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>