web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

InventSum does not update when using reservation lot.

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I have created AX View based on the below SQL query. It calculates all the qty fields fine until you reserve a lot in a sales order. Then this view does not provide the correct available qty after reservation. I tried to use AX job to update the inventSum table but no help.

Thank you in advance for your insight/help.


SELECT ITEMID, SUM(I.RESERVPHYSICAL) RESERVEPHY, SUM(I.PHYSICALINVENT) PHYINVENT, SUM(I.AVAILPHYSICAL) AVAILPHY 
FROM INVENTSUM I
JOIN INVENTDIM D ON I.INVENTDIMID = D.INVENTDIMID
JOIN WMSLOCATION WM ON D.INVENTLOCATIONID = WM.INVENTLOCATIONID AND D.WMSLOCATIONID = WM.WMSLOCATIONID
WHERE WM.INVENTLOCATIONID = 'MAIN DC'
GROUP BY I.ITEMID
static void Job2(Args _args)
{
    InventSumRecalcItem InventSumRecalcItem;
    ;
    InventSumRecalcItem = new InventSumRecalcItem("M2300N95", true, checkfix::fix);
    InventSumRecalcItem.updatenow();
}

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pam,

    Can you check the inventory transactions for the sales order and provide screenshots of the inventory transactions post reservation?

    Are you able to see any changes in the inventory on hand values after doing a reservation on the sales order?

  • pam86 Profile Picture
    45 on at

    Yes, the inventory on hand does show the reservation on the sales order.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Can you change the query to something like this -

    SELECT ITEMID, SUM(I.RESERVPHYSICAL) RESERVEPHY, SUM(I.PHYSICALINVENT) PHYINVENT, SUM(I.AVAILPHYSICAL) AVAILPHY 
    FROM INVENTSUM I
    JOIN INVENTDIM D ON I.INVENTDIMID = D.INVENTDIMID
    OUTER JOIN WMSLOCATION WM ON D.INVENTLOCATIONID = WM.INVENTLOCATIONID AND D.WMSLOCATIONID = WM.WMSLOCATIONID
    WHERE WM.INVENTLOCATIONID = 'MAIN DC'
    GROUP BY I.ITEMID

  • pam86 Profile Picture
    45 on at

    same result, the reservation lot does not show.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Pam,

    Can you get rid of the where condition in the query and try? Maybe the reservation is getting done in a location other than "MAIN DC".

  • Suggested answer
    pam86 Profile Picture
    45 on at

    The result is still the same after removing conditions.

    Actually, I created this view to use for factbox query for my salestable form.  But as this did not work so I used the factbox logic implemented in inventory on-hand form factbox. That worked for me as it takes care of reservations etc.

    Thank you for your feedback.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 467 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans