//Creating Find Method In Ax 2012
static InventTable find(ItemId itemId,boolean update = false)
{
InventTable inventTable;
inventTable.selectForUpdate(update);
if (itemId)
{
select firstonly inventTable
index hint ItemIdx
where inventTable.ItemId == itemId;
}
return inventTable;
}
static InventTable find(ItemId itemId,boolean update = false)
{
InventTable inventTable;
inventTable.selectForUpdate(update);
if (itemId)
{
select firstonly inventTable
index hint ItemIdx
where inventTable.ItemId == itemId;
}
return inventTable;
}
No comments:
Post a Comment