Hi guys,
I have a requirement to be able to remove a batch line item from an already activated creditor payment batch. The need for this requirement is complex, but essentially due to an audit cycle which occurs and must occur after payment activation. So essentially the requirement is to rollback all changes associated with that line item when if was activated ... as though it had been removed prior to activation.
I'm guessing as this breaks some business logic, that there are no procedures I can call to apply this, so I have started looking at table data changes.
Aside from the obvious removal from CR_BatchPayLines, I have identified that I need to remove a CR_Trans record (on TransID) and a CR_TransAlloc record (on DebitTransID), and to adjust both a debit row amount and a credit row amount in GL_Transactions (on GLSetID via GL_Sets on SourceID).
As reverse engineering is never totally comprehensive, and I really don't want to break any accounting, could you let me know what I have missed?
Cheers,
Neil.