there is a solution called custom gl plugins that allows you to add GL lines to the current record type with specific conditions.
It used to be necessary for expense reallocation for child subsidiaries. But that's not the only use. You can add lines to existing GL impact, but not remove existing ones.