Looking for some guidance on writing to another table while running a pre-delete script. @Sage100AdvancedScripting On SO_InvoiceHeader, we have added a pre-delete script with the intention of writing new or updated records to BR_Transaction. The problem that we have encountered in v2013 (the client's system) and also my test v2016 system is that although the posting process seems to complete successfully, it leaves XD invoices in the SO_InvoiceHeader table. Not sure why. The invoice appears correctly posted in IM, AR history, GL, and also the BR table that we want. Because the SO_InvoiceHeader table shows each invoice now as an XD invoice (except the last one which remains as IN), something clearing isn't working. To make matters worse when credit cards are in use, SPS shows the transaction also being voided.
Any direction or guidance would be appreciated.