Issue
When using a BIll of Material to auto-build items in the sales order process, the sales are posted to the default sales code in the GL control table instead of the actual sales GL code for the built item.
Workaround
Sell finished items, not BOMs, as this avoids the problem.
Resolution
Attached to Problem ticket EXB-6111 and resolved in 2021.4