Quintiq file version 2.0
#parent: ListCustomerOrders
Response OnClick () id:Response_ListCustomerOrders_MenuNewSalesDemand_OnClick
{
  #keys: '[124112.0.98546278]'
  Body:
  [*
    // Create a new customer order
    dlg := construct( DialogCreateEditCustomerOrder );
    customerorder := dlg.NewCustomerOrder( this );
    
    ApplicationLibMacroPlanner.AutoExpandSelection( this, customerorder );
  *]
  CanBindMultiple: false
  DefinitionID => /ListCustomerOrders/Responsedef_ListCustomerOrders_Menu_OnClick
  Initiator: 'MenuNewSalesDemand'
  Precondition:
  [*
    return Product_MP::HasProductAndHasPeriod( feedback, MacroPlan )
           and SalesDemandBase::CanCreate( feedback, 
                                           DataHolderChildSalesSegments.Data(),
                                           DataHolderChildProducts.Data(),
                                           DataHolderChildStockingPoints.Data() );
  *]
}
