Quintiq file version 2.0
#parent: ListCustomerOrders
Response OnClick (
  structured[CustomerOrder] selection
) id:Response_ListCustomerOrders_MenuCopySalesDemand_OnClick
{
  #keys: '[124112.0.98545301]'
  Body:
  [*
    // Copy a customer order
    customerorders := CustomerOrder::Copy( selection );
    
    // Auto select newly created sales demands
    if( customerorders.Size() > 0 )
    {
      ApplicationLibMacroPlanner.AutoSelectElementsInList( ListCustomerOrders, customerorders );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListCustomerOrders/Responsedef_ListCustomerOrders_Menu_OnClick
  Initiator: 'MenuCopySalesDemand'
}
