Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Retrieve Qty available pr. variant

(0) ShareShare
ReportReport
Posted on by 445

Hi all

I need to create a flowfield on variant table, which tells the qty available for that variant. 

I know that we have the functionality on Item Card that retrives the variant qty available, I have debugged through the process but I couldn't see the what the relation between the Item ,variant and the Inventory was. If anyone can explain the flow in a more understandable language, I will be very thankful. 

*This post is locked for comments

  • Verified answer
    Mehdi26 Profile Picture
    Mehdi26 445 on at
    RE: Retrieve Qty available pr. variant

    I have found out how they are related.

    On the Item Variant table I create a new flowfield called "Quantity Available" with below calcformula:

    CalcFormula = Sum("Item Ledger Entry".Quantity WHERE ("Item No."=FIELD("Item No."),"Variant Code"=FIELD(Code))); 

    To test the solution I did following:

    1. Create and post a line in "Item Journal" with Entry Type set to "positive Adjmt." and then choose an item that has variant(s). 
    2. Choose a variant in "Variant Code" and enter a quantity for it,
    3. Create a sales order with the item above. 
    4. on the sales line, choose the variant code we added.
    5. post the sales order
    6. Open "Item Variant" table and find the variant we used before. 
    7. The value for the field "Quantity Available", that i created should now be (Quantity from Item Journal) - (Quantity from Sales order)

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans