Hello,
i need to fully unreserve quantity against prodline with specified WMSLocationId
this is the code i use, it doesnt work, maybe somebody see why ?
ttsBegin;
while select * from newProdBOM where newProdBOM.ProdId == lProdTable.ProdId
{
inventMovement = InventMovement::construct(newProdBOM, InventMovSubType::None);
inventDimTable = InventDim::find(newProdBOM.InventDimId);
inventDimTable.wMSLocationId = ProdParameters::find().INSWMSLocationId;
inventDimTable = InventDim::findOrCreate(inventDimTable);
inventUpd_Reservation = InventUpd_Reservation::newInventDim(inventMovement,inventDimTable, 0, true);
inventUpd_Reservation.updatenow();
}
ttsCommit;