Changeset 31bd056 for treasury


Ignore:
Timestamp:
Jan 22, 2010, 4:56:42 AM (16 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
e0689aa
Parents:
52c3467
git-author:
Alex Dehnert <adehnert@…> (01/22/10 04:56:42)
git-committer:
Alex Dehnert <adehnert@…> (01/22/10 04:56:42)
Message:

Add voucher support (WIP WIP WIP)

Location:
treasury
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • treasury/vouchers/models.py

    r6b8d891 r31bd056  
    1212    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)")
    1313    amount = models.DecimalField(max_digits=7, decimal_places=2, help_text='Do not include "$"')
    14     budget_area = models.ForeignKey(BudgetArea)
     14    budget_area = models.ForeignKey(BudgetArea, related_name='as_budget_area')
    1515    budget_term = models.ForeignKey(BudgetTerm)
     16    expense_area = models.ForeignKey(BudgetArea, related_name='as_expense_area') # ~GL
    1617    request_time = models.DateTimeField(default=datetime.datetime.now)
    1718    approval_time = models.DateTimeField(blank=True, null=True,)
     
    3031            self.budget_term.name,
    3132        )
     33
     34
     35class Voucher(models.Model):
     36    group_name = models.CharField(max_length=10)
     37    account = models.IntegerField()
     38    signatory = models.CharField(max_length=50)
     39    first_name = models.CharField(max_length=20)
     40    last_name = models.CharField(max_length=20)
     41    email_address = models.EmailField(max_length=50)
     42    mailing_address = models.TextField()
     43    amount = models.DecimalField(max_digits=7, decimal_places=2,)
     44    description = models.TextField()
     45    gl = models.IntegerField()
Note: See TracChangeset for help on using the changeset viewer.