Quintiq file version 2.0
#parent: ListPeriodSpecification
Response OnClick (
  PeriodSpecification_MP selection
) id:Response_ListPeriodSpecification_MenuRollToNextPeriod_OnClick
{
  #keys: '[113694.2.336625028]'
  Body:
  [*
    // Roll to next period
    resetKPIhorizon := MacroPlan.GlobalParameters_MP().UpdateKPIHorizonAtPeriodRoll();
    if ( MessageBox::Question( this, Translations::MP_Designer_PeriodRollConfirmation( resetKPIhorizon ), Translations::MP_Designer_YesNo() ) = 0 )
    { 
      selection.RollToNextPeriod();
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListPeriodSpecification/Responsedef_ListPeriodSpecification_Menu_OnClick
  Initiator: 'MenuRollToNextPeriod'
}
