I have a script that creates AR Invoices (for commission purposes) when SO Invoices are posted. I'm firing off from the SO_SalesOrderDetail table PreDelete event. I'm ensuring that the script does not fire off when a line is deleted in SO entry with ""if oSession.Updating<>0 then...""
My problem, when the script runs, it runs twice - once for each sales order line, then again. Does the SO Invoice posting process run two SO Detail delete events? If so, how can I differentiate them?
BTW, I tried this on PostDelete event and got the same result.
Thanks!