How to handle accounts in ERPNext for a company with multiple branches

As far as my concern, you able to create more than one company name in ERPNext. At the same time, you should create a new COA in Accounting for the branch. You also able to create branches in ERPNext HRM. Then, all the items, Invoices, PO, PR will be tied with either main branch or sub branches base on the company name you created.