round vat to 2 decimals
This commit is contained in:
parent
c5d7caf3fc
commit
1f89ff986c
|
@ -42,7 +42,7 @@ class CustomOrder(CreatedUpdatedModel):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vat(self):
|
def vat(self):
|
||||||
return Decimal(self.amount*Decimal(0.2))
|
return Decimal(round(self.amount*Decimal(0.2), 2))
|
||||||
|
|
||||||
|
|
||||||
class Order(CreatedUpdatedModel):
|
class Order(CreatedUpdatedModel):
|
||||||
|
|
Loading…
Reference in a new issue