web-app icon indicating copy to clipboard operation
web-app copied to clipboard

Chart of Accounts - Tree view does not work

Open peter-santa-dpc opened this issue 3 years ago • 1 comments

Description

It is expected to see the hierarchy of accounts in Accounting / Chart of Accounts / Tree View. But it does not work.

Steps to Reproduce

  1. Have GL accounts created of each type (Asset, Liability, Income, Expense, Equity) on Accounting / Chart of Accounts. Set "HEADER" as Account Usage. Have unique GL code for each (does not matter, what number, just unique in the system).
  2. Have GL accounts created of each type (Asset, Liability, Income, Expense, Equity) on Accounting / Chart of Accounts. Set "DETAIL" as Account Usage. Have unique GL code for each (does not matter, what number, just unique in the system). Have a parent set for each.
  3. On Accounting / Chart of Accounts click on Tree view.

Expected Behaviour

The hierarchy of accounts should be shown:

  • Asset
    • Asset account with "HEADER" usage
      • Asset account, with "DETAIL" usage
      • Asset account, with "DETAIL" usage
    • Asset account with "HEADER" usage
      • Asset account, with "DETAIL" usage
      • Asset account, with "DETAIL" usage
  • Liability
    • Liability account with "HEADER" usage
      • Liability account, with "DETAIL" usage
      • Liability account, with "DETAIL" usage
    • Liability account with "HEADER" usage
      • Liability account, with "DETAIL" usage
      • Liability account, with "DETAIL" usage
  • Income
    • Income account with "HEADER" usage
      • Income account, with "DETAIL" usage
      • Income account, with "DETAIL" usage
    • Income account with "HEADER" usage
      • Income account, with "DETAIL" usage
      • Income account, with "DETAIL" usage
  • Expense
    • Expense account with "HEADER" usage
      • Expense account, with "DETAIL" usage
      • Expense account, with "DETAIL" usage
    • Expense account with "HEADER" usage
      • Expense account, with "DETAIL" usage
      • Expense account, with "DETAIL" usage
  • Equity
    • Equity account with "HEADER" usage
      • Equity account, with "DETAIL" usage
      • Equity account, with "DETAIL" usage
    • Equity account with "HEADER" usage
      • Equity account, with "DETAIL" usage
      • Equity account, with "DETAIL" usage

Actual Behaviour

The Tree view does not work. Sometimes totally empty, sometimes shows the Account Types (have not found out, depends on what). But it never shows the correct hierarchy.

Settings

  • Mifos X version: Version 0.0.0 :) This might be a bug also... It is reproducible with the commit hash https://github.com/openMF/web-app/commit/6e973dd50aba148edc26e7b8e6bb2433c1522b71
  • Browser used: Chrome Version 103.0.5060.114 (Official Build) (x86_64)

Screenshots, if any

Chart of Accounts - List view Chart of Accounts - Tree view

peter-santa-dpc avatar Jul 18 '22 15:07 peter-santa-dpc

The issue is no longer present in web app, tree structure loads as expected. [Attached Image] image

anika-001 avatar Sep 08 '22 04:09 anika-001