ERPNext Conference 2019* Blog

What is lft & rgt in account doctype?


I came across these 2 fields in account doctype. What are they actually used for?


Those fields are required to generate tree view for a doctype


These fields are used for creating a tree structure for the account doctype.


@revant_one @ManasSolanki . I noticed that this field is also being used to order accounts in reports? I am trying to have the direct expense display above indirect expense in P&L . Where do i tinker around exactly to achieve this?