Quintiq file version 2.0
#parent: #root
Response OnClick (
  Unit selection
) id:Response_ListUnitTree_MenuEditCalendar_OnClick
{
  #keys: '[101472.2.715136376]'
  Body:
  [*
    // Edit calendar from unit lists
    upt := select ( selection, UnitPeriod.astype( UnitPeriodTime ), upt, true, upt.Period_MP().Start() = MacroPlan.StartOfPlanning() );
    ApplicationLibMacroPlanner.EditUnitCalendar( selection, upt, selection.StartDate() );
  *]
  CanBindMultiple: false
  DefinitionID => /Responsedef_ListUnitTree_Menu_OnClick
  Initiator: 'MenuEditCalendar'
  Precondition:
  [*
    return selection.CanEditCalendar( feedback );
  *]
}
