How to get Productname of an item in itemarrival journal lines creation
[ExtensionOf(tableStr(WMSJournalTrans))]
public final class DaxWMSJournalTransTable_Extension
{
public void modifiedField(FieldId fieldId)
{
// InventItemIdLookupSimpleView item;
EcoResProductName productName;
InventTable invent = InventTable::find(this.itemId);
EcoResProduct product = EcoResProduct::find(invent.Product);
productName = invent.productName(SystemParameters::getSystemLanguageId());
next modifiedField(_fieldId);
switch (fieldId)
{
case fieldNum(WMSJournalTrans, itemId):
this.ProductName = product.productName();
this.insert();
break;
}
}
}
No comments:
Post a Comment