AX2009根据站点计算库存现有量
根据站点汇总库存现有量
inventDimCurrent.InventSiteId = soline.inventDim().InventSiteId;//InventDim::find(soline.InventDimId); inventDimParm.initFromInventDim(inventDimCurrent); inventOnhand = InventOnhand::newParameters(soline.ItemId,inventDimCurrent,inventDimParm); //inventSum = InventSum::findSum(soline.ItemId,inventDimCurrent,inventDimParm); currentProdInventtory = inventOnhand.availPhysical();