public real GetOnHandStock(InventLocationId _warehouse,TransDate _transDate,Itemid _itemid)
{
InventDim inventDim;
InventDimParm inventDimParm;
InventLocation inventLocation;
InventSumDatePhysicalDim inventSumDatePhysicalDim;
real OnhandQty;
inventLocation = InventLocation::find(_warehouse);
inventDim.wMSLocationId =inventLocation.WMSLocationIdDefaultReceipt;
inventDim.InventLocationId = inventLocation.InventLocationId;
inventDim.InventSiteId =inventLocation.InventSiteId;
inventDim = InventDim::findOrCreate(inventDim);
inventDimParm.initFromInventDim(inventDim);
OnhandQty = InventSumDatePhysicalDim::onHandQty(_transDate,_itemid,inventDim,inventDimParm);
return OnhandQty;
}
{
InventDim inventDim;
InventDimParm inventDimParm;
InventLocation inventLocation;
InventSumDatePhysicalDim inventSumDatePhysicalDim;
real OnhandQty;
inventLocation = InventLocation::find(_warehouse);
inventDim.wMSLocationId =inventLocation.WMSLocationIdDefaultReceipt;
inventDim.InventLocationId = inventLocation.InventLocationId;
inventDim.InventSiteId =inventLocation.InventSiteId;
inventDim = InventDim::findOrCreate(inventDim);
inventDimParm.initFromInventDim(inventDim);
OnhandQty = InventSumDatePhysicalDim::onHandQty(_transDate,_itemid,inventDim,inventDimParm);
return OnhandQty;
}
No comments:
Post a Comment