Add an option ignore_account_root_nodes: bool = False to CashCtrlClient.update_categories(). When set, we silently ignore additions, updates and deletions of root account categories.
Modify mirror_account_chart() to activate this option. Remove trick on ledger.py#L140 that ignores root node most of the time but fails to work in some circumstance.
This PR covers following changes:
ignore_account_root_nodes: bool = False
toCashCtrlClient.update_categories()
. When set, we silently ignore additions, updates and deletions of root account categories.mirror_account_chart()
to activate this option. Remove trick on ledger.py#L140 that ignores root node most of the time but fails to work in some circumstance.First commit - shows the issue exist with the new test suit Second commit - fixes the issue
@lasuk Please review the changes and provide feedback or approval for merging.