[ExtensionOf(tableStr(InventTransOrigin))]
final class INFInventTransOrigin_T_Extension
{
public display Str yuvraj()
{
ProdBOM prodbom;
if(this.ReferenceCategory == InventTransType::Production)
{
select prodbom where prodbom.ProdId == this.ReferenceId ;
{
if(prodbom.InventRefId)
{
return prodbom.InventRefId;
}
}
}
return null;
}
}
I PUT THIS DISPLAY METHOD ON A STRING CONTROL IN INVENTTRANS FORM WITH DATA SOURCE INVENT TRANS ORIGIN