Hi. I'm a new AX developer (experienced developer, just new to AX). I need to implement a small business logic change to set a field in SalesTable whenever a sales order is confirmed that meets a certain criteria.
My question is: Where is the most appropriate place to put code to do this?
For now, I have the code in the closeOk() method of the SalesEditLines form.
But I can see where there are other places it could go, including the insert() method on the CustConfirmJour table, or possibly various places in the SalesFormLetter class.
The company I'm working for has done quite a bit of AX customization already, and I see custom code in all these places. Just wondering if there's a best practice for stuff like this.
Thanks.