diff --git a/drcr/models.py b/drcr/models.py index ae8db3e..fc37258 100644 --- a/drcr/models.py +++ b/drcr/models.py @@ -80,6 +80,9 @@ class TrialBalancer: # TODO: Keep a record of internal transactions? + if source_account not in self.accounts: + return + if destination_account not in self.accounts: self.accounts[destination_account] = Amount(0, '$') # FIXME: Other commodities diff --git a/drcr/templates/base.html b/drcr/templates/base.html index 983b8f7..d5fe7db 100644 --- a/drcr/templates/base.html +++ b/drcr/templates/base.html @@ -25,6 +25,17 @@
- {% block body %}{% endblock %} + {% block body %} + +