Replaced the hard-coded cash account codes with the ACCUMULATED_CHANGE and NET_CHANGE constants and the accumulated_change() method of the Account data model.
This commit is contained in:
@@ -125,7 +125,7 @@ class EntryCollector:
|
||||
entry: Entry = Entry()
|
||||
entry.is_brought_forward = True
|
||||
entry.date = self.__period.start
|
||||
entry.account = Account.find_by_code("3351-001")
|
||||
entry.account = Account.accumulated_change()
|
||||
entry.summary = gettext("Brought forward")
|
||||
if balance > 0:
|
||||
entry.income = balance
|
||||
|
||||
Reference in New Issue
Block a user