source: remit/remit_templates/vouchers/vouchers.tex @ 23138c0

client
Last change on this file since 23138c0 was 23138c0, checked in by Alex Dehnert <adehnert@…>, 14 years ago

Display time on summary page (Trac: #24)

  • Property mode set to 100644
File size: 1.5 KB
Line 
1{% load latex %}
2{% autoescape off %}
3\documentclass{mitvoucher}
4
5\signatoryemail{esp-treasurer@mit.edu}
6\usepackage{pdfpages}
7\newcommand{\documentationpath}{%templatetag openbrace%}{{MEDIA_ROOT}}{%templatetag closebrace%}
8
9\begin{document}
10
11\section{Summary Table}
12
13\begin{tabular}{r|l|l|r|p{2in}}
14Account & Name & Email & Amount & Description \\
15{% for f in vouchers %}
16{{f.account|texescape}} &
17{{f.first_name|texescape}} {{f.last_name|texescape}} & 
18{{f.email_address|texescape}} &
19{{f.amount|texescape}} &
20{{f.description}} \\
21{% endfor %}
22\end{tabular}
23
24This run generated at {% now "H:i" %} on {% now "l F d, Y" %}.
25
26The following pages contain the vouchers themselves.
27
28\clearpage
29
30{% for f in vouchers %}
31\begin{voucher}
32\groupname{ {{f.group_name|texescape}} }
33\costobject{ {{f.account|texescape}} }
34\signatory{ {{f.signatory|texescape}} }
35\bycheck{}
36\payablefirst{ {{f.first_name|texescape}} }
37\payablelast{ {{f.last_name|texescape}} }
38\email{ {{f.email_address|texescape}} }
39{% if f.mailing_addr_lines.0 %}\mailone{ {{f.mailing_addr_lines.0|texescape}} }
40{% endif %}{% if f.mailing_addr_lines.1 %}\mailtwo{ {{f.mailing_addr_lines.1|texescape}} }
41{% endif %}{% if f.mailing_addr_lines.2 %}\mailthree{ {{f.mailing_addr_lines.2|texescape}} }
42{% endif %}\amt{\${{f.amount|texescape}} }
43\desc{
44{{f.description|texescape}}
45}
46\gl{ {{f.gl|texescape}} }
47\end{voucher}
48
49{% if f.documentation %}
50\includepdf[pages=-]{\documentationpath/{{f.documentation.backing_file}}}
51{% endif %}
52{% endfor %}
53
54\end{document}
55{% endautoescape %}
Note: See TracBrowser for help on using the repository browser.