diff --git a/accounting/models.py b/accounting/models.py index c701fd6..828995d 100644 --- a/accounting/models.py +++ b/accounting/models.py @@ -58,6 +58,9 @@ class Account(DirtyFieldsMixin, models.Model): def __init__(self, *args, **kwargs): super(Account, self).__init__(*args, **kwargs) self.url = None + self.debit_amount = None + self.credit_amount = None + self.amount = None def __str__(self): """Returns the string representation of this account.""" diff --git a/accounting/templates/accounting/balance-sheet.html b/accounting/templates/accounting/balance-sheet.html index 0e9fe1b..9413f4f 100644 --- a/accounting/templates/accounting/balance-sheet.html +++ b/accounting/templates/accounting/balance-sheet.html @@ -95,7 +95,7 @@ First written: 2020/7/20 {% for item in group.details %}