Wednesday, 18 May 2016

InventDim getting and updating data

HI,

below is sample code to update(kind of update) InventDim table and get required data. Get wmslocation from below code and assign inventDIm

inventDimLoc.InventLocationId = SalesTable.InventLocationId;
inventDimLoc.InventSiteId = SalesTable.InventSiteId;
inventDimLoc.wMSLocationId =VendTable::find(InventTable::find(salesLine.itemid).PrimaryVendorId).ReturnLocation;
inventDimLoc = InventDim::findOrCreate(inventDimLoc);
salesLine.InventDimId = inventDimLoc.inventDimId;

No comments:

Post a Comment