Import VAT rates "importer" from dynamicweb

This commit is contained in:
fnux 2020-04-15 12:16:55 +02:00
commit ad187c02da
3 changed files with 84 additions and 0 deletions

View file

@ -453,6 +453,15 @@ class BillRecord():
def amount(self):
return Decimal(float(self.recurring_price) * self.recurring_count) + self.one_time_price
class VATRate(models.Model):
start_date = models.DateField(blank=True, null=True)
stop_date = models.DateField(blank=True, null=True)
territory_codes = models.TextField(blank=True, default='')
currency_code = models.CharField(max_length=10)
rate = models.FloatField()
rate_type = models.TextField(blank=True, default='')
description = models.TextField(blank=True, default='')
###
# Orders.