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

In CustCreditLimit class need to check the salesqty to be not more than as given in custom table

Creditinvoice report

Simple string functions to fill in built-in function gaps