Reference for Developer to Sage 300 in a case I want to revert a transaction

Hi all,

I have a case where my customer have a grave mistakes from sales transactions down to GL account, and the data displayed wrongly on the P&L report. It have been happening for few months. So he is asking if is there any way to revert only selected transactions, if there is none, can we create a solution for this? If I can create the solution for this, is there any reference for developer to make a custom program/macro? The reference as in the table join, the sequence of tables to remove rows from, etc?