fun with data types
This commit is contained in:
parent
3b7ae7c0b6
commit
cc1fd1d806
|
@ -80,7 +80,7 @@ class Order(CreatedUpdatedModel):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vat(self):
|
def vat(self):
|
||||||
return Decimal(self.total*0.2)
|
return Decimal(self.total*Decimal(0.2))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def total(self):
|
def total(self):
|
||||||
|
|
Loading…
Reference in a new issue