use .amount not .total
This commit is contained in:
parent
e663937151
commit
a850696345
|
@ -295,7 +295,7 @@ class CreditNote(CreatedUpdatedModel):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vat(self):
|
def vat(self):
|
||||||
return Decimal(self.total*Decimal(0.2))
|
return Decimal(self.amount*Decimal(0.2))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def filename(self):
|
def filename(self):
|
||||||
|
|
Loading…
Reference in a new issue