From a85069634587e9c87435c4bd85dad22a0c41ed85 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 18 Jun 2016 21:13:27 +0200 Subject: [PATCH] use .amount not .total --- shop/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/models.py b/shop/models.py index 1fac3efd..e0b36d42 100644 --- a/shop/models.py +++ b/shop/models.py @@ -295,7 +295,7 @@ class CreditNote(CreatedUpdatedModel): @property def vat(self): - return Decimal(self.total*Decimal(0.2)) + return Decimal(self.amount*Decimal(0.2)) @property def filename(self):