You can move these transactions using the bulk re-coding tool. There’s more details on this here: Bulk change incorrect postings
Basically, this allows you to move the nominal entries from one code to another, providing they’re within the same category (e.g. sales > sales, purchases > purchases)