I have a new project which is always great! The customer wants to run a bunch of validations on a Sales Order when it is being saved. None of the validations will prevent the saving of an invoice. The result of the validations will simply set some values in some User Defined Fields on the Sales Order.
Since I am not doing validations that will produce any exceptions, I am not sure where in the process I would run these validations (i.e., in a method, override an action or process etc.).
I can dig into the Acumatica code but before I start that process, I would love a recommendation as to the best approach to do this. FYI, I cannot debug the Acumatica code as I cannot seem to get my breakpoints to hit. I added the bin folder to the symbols to load in the debug options, but it still doesn’t work. That’s another topic, but since I cannot get debugging to work on Acumatica pdb’s, it is hard to determine where I should inject my code. I haven’t been able to get debugging of Acumatica code to work for about the last year. I’ve scoured the web but none of the suggestions work. Very frustrating.
Perhaps I should override the Save action (if I can)? Or maybe there is a virtual method I can override with a delegate that is the “save method” for a SO?