Tuesday, January 28, 2014

Find any item's On-hand quantity in a warehouse on a particular date through code in AX 2012



    InventDimParm           inventDimParm;
    InventDim                   inventDim;

    TransDate                   CountOnDate = today();

    inventDim.InventLocationId = // assign the counting warehouse
    inventDimParm.initFromInventDim(inventDim);

    return InventSumDatePhysicalDim::onHandQty(CountOnDate, "ItemId", inventDim, inventDimParm);

That's all!

1 comment:

  1. Casino Roll
    Casino Roll - We provide top 김해 휴게텔 slots games to the world's most successful 바카라롤링총판 casinos. Play our 해외 라이브 스코어 exciting slots games for real money or 넷텔러 for free. No 벳 365 코리아 registration, no download or

    ReplyDelete