Where is the code for where a change in the sales line salesqty update the inventtrans qty?
I looked in salestable.update but can't find where that happens?
It updates inventtrans somewhere right?
Thanks
yeah, I that's what I ended up doing.
hey, I still have a question though. I tried creating a coc modified field class on the inventtrans table and that did not seem to fire even though the the 'onorder' field was being updated. Any idea why?
Thx again.
Yes, it might update InventTrans, but it's logic of SalesLine, not the whole order header (SalesTable).
In case of an update, you might be interested in SalesLineType.updateInventoryOnUpdate().
You can put a breakpoint to InventTrans insert()/update() to find the sequence of calls by yourself.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156