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