Start reworking invoice things

This commit is contained in:
2020-03-18 18:09:45 +00:00
parent 0144bd37fc
commit 50ca782569
15 changed files with 350 additions and 434 deletions

View File

@@ -499,6 +499,7 @@ class EventAuthorisation(models.Model, RevisionMixin):
return str("N%05d" % self.event.pk + ' (requested by ' + self.sent_by.initials + ')')
@reversion.register(follow=['payment_set'])
class Invoice(models.Model):
event = models.OneToOneField('Event', on_delete=models.CASCADE)
invoice_date = models.DateField(auto_now_add=True)