Quintiq file version 2.0
#parent: #root
Method SetAttributeAfterApplyData () id:Method_DialogCreateEditProduct_SetAttributeAfterApplyData
{
  #keys: '[135040.0.232650761]'
  Body:
  [*
    // Set attributes on apply data, before commiting the data
    data := DataHolderDialogData.Data();
    
    //Parent product
    parentID := '';
    parentProduct := selParentProduct.Data();
    if( not isnull(  parentProduct ) )
    {
      parentID := parentProduct.ID();
    }            
    data.ParentID( parentID );
    
    //UOM
    uomName := guard( DropDownListUOM.Data().Name(), "" );
    data.UnitOfMeasureName(uomName );
    
    data.IsExcludedFromFulfillmentKPI( data.IsDerivedExcludeFromFulfillmentKPI() )
  *]
}
