Changeset 248b30b


Ignore:
Timestamp:
Feb 3, 2010, 3:30:03 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
b7fc501
Parents:
88e897a
git-author:
Alex Dehnert <adehnert@…> (02/03/10 03:30:03)
git-committer:
Alex Dehnert <adehnert@…> (02/03/10 03:30:03)
Message:

Split check recipient into first and last names

Location:
remit/vouchers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • remit/vouchers/admin.py

    r92ca60e r248b30b  
    1818        ('Expense details', {'fields': ['name', 'description', 'amount', 'budget_area', 'budget_term', ] }),
    1919        ('Request metadata', {'fields': ['submitter', 'request_time', 'approval_time', 'approval_status', 'printing_time', ]}),
    20         ('Recipient', {'fields': ['check_to_name', 'check_to_email', 'check_to_addr', ] }),
     20        ('Recipient', {'fields': ['check_to_first_name', 'check_to_last_name', 'check_to_email', 'check_to_addr', ] }),
    2121    ]
    22     list_display = ('name', 'submitter', 'check_to_name', 'amount', 'budget_area', 'budget_term', )
     22    list_display = ('name', 'submitter', 'check_to_first_name', 'check_to_last_name', 'amount', 'budget_area', 'budget_term', )
    2323
    2424
  • remit/vouchers/models.py

    r92ca60e r248b30b  
    1313class ReimbursementRequest(models.Model):
    1414    submitter = models.CharField(max_length=10) # MIT username of submitter
    15     check_to_name = models.CharField(max_length=50, verbose_name="check recipient's name")
     15    check_to_first_name = models.CharField(max_length=50, verbose_name="check recipient's first name")
     16    check_to_last_name = models.CharField(max_length=50, verbose_name="check recipient's last name")
    1617    check_to_email = models.EmailField(verbose_name="email address for check pickup")
    1718    check_to_addr = models.TextField(blank=True, verbose_name="address for check mailing", help_text="For most requests, this should be blank for pickup in SAO (W20-549)")
     
    2829
    2930    def __unicode__(self, ):
    30         return "%s: %s (%s) (by %s) for $%s in %s during %s" % (
     31        return "%s: %s %s (%s) (by %s) for $%s" % (
    3132            self.name,
    32             self.check_to_name,
     33            self.check_to_first_name,
     34            self.check_to_last_name,
    3335            self.check_to_email,
    3436            self.submitter,
    3537            self.amount,
    36             self.budget_area.name,
    37             self.budget_term.name,
    3838        )
    3939
  • remit/vouchers/views.py

    rfedcbcf r248b30b  
    2121            'budget_area',
    2222            'expense_area',
    23             'check_to_name',
     23            'check_to_first_name',
     24            'check_to_last_name',
    2425            'check_to_email',
    2526            'check_to_addr',
Note: See TracChangeset for help on using the changeset viewer.