Quintiq file version 2.0
#parent: #root
Method EditSupply (
  SupplyBase selection,
  internal[GUIComponent] parent
) id:Method_DialogEditSupply_EditSupply
{
  #keys: '[11766.0.1490031508]'
  Body:
  [*
    // Edit quantity
    
    data := shadow( selection );
    Dialog.Data( data );
    
    result := Dialog.DoModal( parent );
    
    if ( result > 0 )
    {
      selection.Update( data.Quantity() );
    }
  *]
}
