I've worked with the Cost Management application integrated with various Project systems (Oracle, SAP, SalesForce). Typically GLs are applied to Work Orders by the Project Team as the out-of-box Cost Management application does not have GL accounts.
As for automation, I worked with an instance where Location records contained both Expense and Capital (custom) GL attributes. Automation was built to cross over the correct account to the work orders based on the Work Type --- pre-automation scripts. With automation scripting, there are probably a couple of good ways to handle this.
------------------------------
Julie Shaw
Projetech Inc.
------------------------------