use .amount not .total

This commit is contained in:
Thomas Steen Rasmussen 2016-06-18 21:13:27 +02:00
parent e663937151
commit a850696345

View file

@ -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):