Quintiq file version 2.0
#parent: #root
Method SetLabels () id:Method_DialogCreateEditInventorySupply_SetLabels
{
  #keys: '[110880.6.1999928128]'
  Body:
  [*
    // Set UoM and cost label
    product := SelectionProduct.Data();
    productuom := guard( product.UnitOfMeasureName(), '' );
    pisp := select( product, ProductInStockingPoint_MP, pisp, pisp.StockingPoint_MP() = SelectionStockingPoint.Data() );
    
    uom := guard( pisp.UnitOfMeasureName(), productuom );
    
    LabelQuantity.Text( Translations::MP_Designer_DialogCreateEditInventorySupply_SetLabelQuantity( uom ) );
  *]
}
