- Timestamp:
- Jun 1, 2010, 5:39:20 AM (15 years ago)
- Branches:
- master, client
- Children:
- 33cb144
- Parents:
- 0671644
- git-author:
- Alex Dehnert <adehnert@…> (06/01/10 05:39:17)
- git-committer:
- Alex Dehnert <adehnert@…> (06/01/10 05:39:20)
- Location:
- remit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
remit/remit_templates/vouchers/vouchers.tex
ra875cb6 r71ca9e6 11 11 \section{Summary Table} 12 12 13 The following {{vouchers|length}} vouchers are included in this run:\\13 The following {{vouchers|length}} vouchers (total: \${{total}}) are included in this run:\\ 14 14 \begin{tabular}{r|l|l|r|p{2in}} 15 15 Account & Name & Email & Amount & Description \\ -
remit/vouchers/views.py
r5e6ab71 r71ca9e6 18 18 from django.template.loader import get_template 19 19 from django.views.generic import list_detail 20 21 import decimal 20 22 21 23 import settings … … 308 310 lst = lst.filter(processed=False) 309 311 312 total = decimal.Decimal('0.00') 313 for voucher in lst: 314 total = total + voucher.amount 315 310 316 context = { 311 317 'vouchers': lst, 318 'total': total, 312 319 'MEDIA_ROOT': settings.MEDIA_ROOT, 313 320 }
Note: See TracChangeset
for help on using the changeset viewer.