Fix #258 -- Add a comment field to bank transactions

This commit is contained in:
Raphael Michel
2016-10-08 20:18:35 +02:00
parent 166fedb4ef
commit d43d6f485b
6 changed files with 104 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ class BankTransaction(models.Model):
amount = models.DecimalField(max_digits=10, decimal_places=2)
date = models.CharField(max_length=50)
order = models.ForeignKey('pretixbase.Order', null=True, blank=True)
comment = models.TextField(blank=True)
def calculate_checksum(self):
clean = re.compile('[^a-zA-Z0-9.-]')