Untested changes to models and adding a new finance system. Cannot test

ATM so will do so ASAP.
This commit is contained in:
Tom Price
2015-01-21 16:38:02 +00:00
parent ea61bda578
commit d775a02758
2 changed files with 27 additions and 0 deletions

0
RIGS/finanace.py Normal file
View File

View File

@@ -278,3 +278,30 @@ class EventCrew(models.Model):
run = models.BooleanField(default=False)
derig = models.BooleanField(default=False)
notes = models.TextField(blank=True, null=True)
class Invoice(models.Model):
event = models.OneToOneField('Event')
invoice_date = models.DateField(auto_now_add=True)
void = models.BooleanField()
class Payment(models.Model):
CASH = 'C'
INTERNAL = 'I'
EXTERNAL = 'E'
SUCORE = 'SU'
MEMBERS = 'M'
METHODS = (
(CASH, 'Cash'),
(INTERNAL, 'Internal'),
(EXTERNAL, 'External'),
(SUCORE, 'SU Core'),
(MEMBERS, 'Members'),
)
invoice = models.ForeignKey('Invoice')
date = models.DateField()
amount = models.DecimalField(max_digits=10, decimal_places=2, help_text='Please use ex. VAT')
method = models.CharField(max_length=2, choices=METHODS)