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
Exporting the chart of accounts to Excel from the Account Management module gives a really confusing export. I created a custom chart of accounts for fun, and have uploaded it here to demonstrate: Chart of Accounts 2018-1-2.xlsx
Observe that we have multiple columns discussing title accounts:
type (comes from an SQL join on type_id)
is_title (a legacy column in the account table)
is_title_account (computed ... somewhere. It looks like it is hardcoded to be TRUE when type_id === 3).
None of these columns correspond! This is very confusing. I propose we remove all hard-coded references to the title accounts as 3 and remove the is_title account until we actually use it.
The text was updated successfully, but these errors were encountered:
This commit removes all the `is_` account prefixes to replace them with
account_type checks instead. The only one actually used was `is_title`
which has been replaced with an account type check.
ClosesThird-Culture-Software#2436.
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.
Exporting the chart of accounts to Excel from the Account Management module gives a really confusing export. I created a custom chart of accounts for fun, and have uploaded it here to demonstrate:
Chart of Accounts 2018-1-2.xlsx
Observe that we have multiple columns discussing title accounts:
type
(comes from an SQL join on type_id)is_title
(a legacy column in theaccount
table)is_title_account
(computed ... somewhere. It looks like it is hardcoded to be TRUE when type_id === 3).None of these columns correspond! This is very confusing. I propose we remove all hard-coded references to the title accounts as
3
and remove theis_title
account until we actually use it.The text was updated successfully, but these errors were encountered: