forked from uncloud/uncloud
Import VAT rates "importer" from dynamicweb
This commit is contained in:
parent
7afb3f8793
commit
ad187c02da
3 changed files with 84 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue