Quintiq file version 2.0
#parent: #root
Method SetLabels () id:Method_DialogCreateEditProductInTrip_SetLabels
{
  #keys: '[124808.2.620226309]'
  Body:
  [*
    // Set labels
    data := Dialog.Data();
    // UoM                                                  
    uom := guard( data.ArrivalPISPIP().ProductInStockingPoint_MP().UnitOfMeasure_MP().Name(), '' );
    
    if( uom = '' )
    {
      selectedPISP := select( Dialog.Data(), Trip.LaneLeg.LaneLegOutput.ProductInStockingPoint_MP, pisp,
                              pisp.Product_MP() = SelectionProduct.Data() );
      
      uom := guard( selectedPISP.UnitOfMeasure_MP().Name(), '' );
    }
    
    LabelQuantity.Text( Translations::MP_Designer_QuantityUOM( uom ) );
  *]
}
