fiogf49gjkf0d I have some code that is executed in the OnAfterUpdate event of SalesOrderItem, this code updates some fields of the parent SalesOrder. After spending a great deal of time trying to figure out, why it wasn't working properly, I found out that *sometimes* the event is triggered and *sometimes* it isn't. It depends on what fields have been changed on the SalesOrderItem. For instance, if I modify a "description" field, the event is not triggered, while if I modify the "price" field it is. I have no clue why this is the case, but that's what is currently happening. So my question is...when is the OnAfterUpdate event triggered? I assumed it was triggered everytime the entity was updated (i.e. saved) but it seems it's not that simple...apparently depending on *what fields have changed* the event is triggered or not. Any ideas? |