Add VAT Rates to modes, migrations and importer

This commit is contained in:
tomtom5152
2014-11-05 16:17:45 +00:00
parent 8713accf7d
commit 1bf5cbaf82
4 changed files with 56 additions and 2 deletions

View File

@@ -59,4 +59,14 @@ class Organisation(models.Model, RevisionMixin):
string = self.name
if len(self.notes) > 0:
string += "*"
return string
return string
@reversion.register
class VatRate(models.Model, RevisionMixin):
start_at = models.DateTimeField()
rate = models.DecimalField(max_digits=6, decimal_places=6)
comment = models.CharField(max_length=255)
def __unicode__(self):
return self.comment + " " + self.start_at + " @ " + self.rate