You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user makes an account with the account number "0", account management breaks. Specifically, grouping breaks and collapsing at the root does not work anymore. See below:
Fig 1: All of these are parent accounts except 100.
It also makes for a confusing "parent account" dropdown. See below: Fig 1: Two "0" Accounts?
There are two workarounds to this - either allow the parent account number to be NULL or simply disallow "0" as an account number the user can select. I'm in favor of the second option personally, since it requires the least work and allows the database to enforce its NOT NULL constraint. But I am open to any suggestion.
You also cannot delete an account with account number "0".
The text was updated successfully, but these errors were encountered:
This commit ensures the $$treeLevel is properly computed by checking if
the account depth is undefined and assigning it -1 if so. When the tree
level is not properly defined, the grouping in the accounts management
module breaks.
ClosesThird-Culture-Software#2433.
This commit ensures the $$treeLevel is properly computed by checking if
the account depth is undefined and assigning it -1 if so. When the tree
level is not properly defined, the grouping in the accounts management
module breaks.
ClosesThird-Culture-Software#2433.
2440: Fix: Chart of Accounts r=jniles a=jniles
This PR fixes two bugs in the accounts management:
1. It removes all `is_*` columns from the account table. These should typically be represented as `type_id`s.
2. Properly computes the `$$treeLevel` on the Accounts Management grid. The previous version of the code did not factor in an undefined "depth" resulting in broken grouping behavior.
Closes#2436.
Closes#2433.
2446: feat(account) prevent the user to set 0 as account number r=jniles a=jeremielodi
This PR oblige the user to enter an account number different to 0.
closes#2433
If a user makes an account with the account number "0", account management breaks. Specifically, grouping breaks and collapsing at the root does not work anymore. See below:
Fig 1: All of these are parent accounts except 100.
It also makes for a confusing "parent account" dropdown. See below:
Fig 1: Two "0" Accounts?
There are two workarounds to this - either allow the parent account number to be NULL or simply disallow "0" as an account number the user can select. I'm in favor of the second option personally, since it requires the least work and allows the database to enforce its NOT NULL constraint. But I am open to any suggestion.
You also cannot delete an account with account number "0".
The text was updated successfully, but these errors were encountered: