Need to display UnitId of itemid based on ModuleType in salesline table

Need to display UnitId of itemid based on ModuleType in salesline table:


Public display UnitOfMeasureSymbol dispInventunit()
{
    InventTableModule           inventTableModule;

    select inventTableModule where inventTableModule.ItemId ==  this.ItemId
                                && inventTableModule.ModuleType ==  ModuleInventPurchSales::Invent;
    return inventTableModule.UnitId;
}

Comments

Popular posts from this blog

We will follow the following steps in the AX development.

Need to provide “ItemId lookup” based on "ItemType" field, which selected while creating SalesOrder

How to retrieve multiple selected records from Grid using X++