round vat to 2 decimals

This commit is contained in:
Thomas Steen Rasmussen 2017-08-08 13:26:58 +02:00
parent c5d7caf3fc
commit 1f89ff986c

View file

@ -42,7 +42,7 @@ class CustomOrder(CreatedUpdatedModel):
@property
def vat(self):
return Decimal(self.amount*Decimal(0.2))
return Decimal(round(self.amount*Decimal(0.2), 2))
class Order(CreatedUpdatedModel):