client
Last change
on this file since e8550be was
004d06d,
checked in by Alex Dehnert <adehnert@…>, 15 years ago
|
Script to download and PDF the vouchers
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[dcaa9c0] | 1 | {% load latex %} |
---|
| 2 | {% autoescape off %} |
---|
| 3 | \documentclass{mitvoucher} |
---|
| 4 | |
---|
| 5 | \signatoryemail{esp-treasurer@mit.edu} |
---|
| 6 | |
---|
| 7 | \begin{document} |
---|
| 8 | |
---|
[004d06d] | 9 | \section{Summary Table} |
---|
| 10 | |
---|
[dcaa9c0] | 11 | \begin{tabular}{r|l|l|r|p{2in}} |
---|
| 12 | Account & Name & Email & Amount & Description \\ |
---|
| 13 | {% for f in vouchers %} |
---|
| 14 | {{f.account|texescape}} & |
---|
| 15 | {{f.first_name|texescape}} {{f.last_name|texescape}} & |
---|
| 16 | {{f.email_address|texescape}} & |
---|
| 17 | {{f.amount|texescape}} & |
---|
| 18 | {{f.description}} \\ |
---|
| 19 | {% endfor %} |
---|
| 20 | \end{tabular} |
---|
| 21 | |
---|
[004d06d] | 22 | The following pages contain the vouchers themselves. |
---|
| 23 | |
---|
| 24 | \clearpage |
---|
| 25 | |
---|
[dcaa9c0] | 26 | {% for f in vouchers %} |
---|
| 27 | \begin{voucher} |
---|
| 28 | \groupname{ {{f.group_name|texescape}} } |
---|
| 29 | \costobject{ {{f.account|texescape}} } |
---|
| 30 | \signatory{ {{f.signatory|texescape}} } |
---|
| 31 | \bycheck{} |
---|
| 32 | \payablefirst{ {{f.first_name|texescape}} } |
---|
| 33 | \payablelast{ {{f.last_name|texescape}} } |
---|
| 34 | \email{ {{f.email_address|texescape}} } |
---|
| 35 | {% if f.mailing_addr_lines.0 %}\mailone{ {{f.mailing_addr_lines.0|texescape}} } |
---|
| 36 | {% endif %}{% if f.mailing_addr_lines.1 %}\mailtwo{ {{f.mailing_addr_lines.1|texescape}} } |
---|
| 37 | {% endif %}{% if f.mailing_addr_lines.2 %}\mailthree{ {{f.mailing_addr_lines.2|texescape}} } |
---|
| 38 | {% endif %}\amt{\${{f.amount|texescape}} } |
---|
| 39 | \desc{ |
---|
| 40 | {{f.description|texescape}} |
---|
| 41 | } |
---|
| 42 | \gl{ {{f.gl|texescape}} } |
---|
| 43 | \end{voucher} |
---|
| 44 | {% endfor %} |
---|
| 45 | |
---|
| 46 | \end{document} |
---|
| 47 | {% endautoescape %} |
---|
Note: See
TracBrowser
for help on using the repository browser.