Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Updating inventtrans qty from Salesline

(0) ShareShare
ReportReport
Posted on by

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

  • brianmaric Profile Picture
    brianmaric on at
    RE: Updating inventtrans qty from Salesline

    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.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Updating inventtrans qty from Salesline

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans