If so, it would be via GL Controls. Check the Tech Ref guides
The “Inventory Transaction Hierarchy” guide shows how the GL accounts are determined for many RMA related trans