Creating tree structure on chart of accounts

Add a script function for tree structure