首页 > 其他 > 详细

按编码查询库存现有量Job

时间:2019-06-08 13:41:11      阅读:97      评论:0      收藏:0      [点我收藏+]
static void WL_YZF_DemoInventOnhand(Args _args)
{
InventDimOnHand onHand;
InventDimOnHandIterator iter;
InventDimOnHandMember member;
ItemId itemId;
InventDim inventDimCrit;
InventDimParm inventDimParmCrit,inventDimParmOnHandLevel;
InventDim inventDim;
InventDimOnHandLevel level;
;
itemId = "itemCode";
inventDimCrit.InventLocationId = "CKID";
inventDimCrit = InventDim::findOrCreate(inventDimCrit);
inventDimParmCrit.InventLocationIdFlag = true;
level = inventDimOnHandLevel::DimParm;
inventDimParmOnHandLevel.ItemIdFlag = true;
inventDimParmOnHandLevel.InventLocationIdFlag = true;
inventDimParmOnHandLevel.WMSLocationIdFlag = true;
inventDimParmOnHandLevel.InventBatchIdFlag = true;
onHand = InventDimOnHand::newAvailPhysical(itemId,
inventDimCrit,
InventDimParmCrit,
level,
inventDimParmOnHandLevel);
iter = onHand.onHandIterator();
while (iter.more())
{
member = iter.value();
inventDim = InventDim::find(member.parmInventDimId());
info(con2Str([member.parmItemId(),inventDim.InventLocationId,
inventDim.wMSLocationId,inventDim.inventBatchId,
member.parmInventQty()]));
iter.next();
}
info("done");
}

按编码查询库存现有量Job

原文:https://www.cnblogs.com/xtwkh1973/p/10990317.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!