Moved the hard-coded account code 3351 and 3353 to constants in the Account data model in the accounting application.

This commit is contained in:
2020-08-02 18:20:36 +08:00
parent da3e7912de
commit 2b9034cfe8
2 changed files with 19 additions and 15 deletions

View File

@ -52,6 +52,8 @@ class Account(DirtyFieldsMixin, models.Model):
db_column="updatedby",
related_name="updated_accounting_accounts")
CASH = "1111"
ACCUMULATED_BALANCE = "3351"
NET_CHANGE = "3353"
def __init__(self, *args, **kwargs):
super(Account, self).__init__(*args, **kwargs)