Created invoice importer

Allowed payment method to be null
This commit is contained in:
Tom Price
2015-01-31 23:13:09 +00:00
parent b527a3faa9
commit e00a8771cc
2 changed files with 40 additions and 2 deletions

View File

@@ -362,4 +362,4 @@ class Payment(models.Model):
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)
method = models.CharField(max_length=2, choices=METHODS, null=True, blank=True)