static void OnHandQtyRetailsSiva(Args _args)
{
RetailStoreId store = 'ANNARBO';
ItemId itemid = '0001';
InventQty postedQty;
InventDimParm inventDimParmCrit;
InventSumDateDim inventSumDateDim;
InventDim inventDim;
InventDim inventDimloc;
inventDim.InventLocationId = store;
inventDim.InventSiteId = 'CENTRAL';
inventDimloc = InventDim::findOrCreate(inventDim);
inventDimParmCrit.initFromInventDim(inventDimloc);
inventSumDateDim = inventSumDateDim::newParameters(systemDateGet(), itemId, inventDimloc, inventDimParmCrit);
postedQty = InventSumDateDim.postedQty();
info(strFmt('%1', postedQty));
}
No comments:
Post a Comment