Quintiq file version 2.0
#parent: #root
Method EditDisaggregationFactor (
  structured[DisaggregationFactor] selection,
  internal[GUIComponent] parent
) id:Method_DialogCreateEditDisaggregationFactor_EditDisaggregationFactor
{
  #keys: '[124808.0.1994363472]'
  Body:
  [*
    // Edit inventory values
    isbatchedit := selection.Size() > 1;
    this.EnableDisableComponent( isbatchedit, true );
    
    
    data := shadow( selection.Element( 0 ) );
    Dialog.Data( data );
    
    result := this.DoModal( parent );
    
    if( result > 0 )
    {
      DisaggregationFactor::Update( selection,
                                    data.Product_MP(),
                                    data.StockingPoint_MP(),
                                    GUIDateTimeSelectorStart.DateTime().Date(),
                                    data.Factor() );
    }
  *]
}
