Quintiq file version 2.0
#parent: ListUnitPeriod
Response OnClick (
  structured[UnitPeriod] selection
) id:Response_ListUnitPeriod_MenuEditActualUnitPeriod_OnClick
{
  #keys: '[113694.1.369877342]'
  Body:
  [*
    // Edit actual unit period
    dlg := construct( DialogCreateEditActualUnitPeriod );
    dlg.CreateOrEditActualFromUnitPeriodList( this, selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListUnitPeriod/Responsedef_ListUnitPeriod_Menu_OnClick
  Initiator: 'MenuEditActualUnitPeriod'
  Precondition:
  [*
    periodSpecForActual := MacroPlan.GetPeriodSpecification( MacroPlan.GlobalParameters_MP().PeriodSpecificationForUnitActual() );
    return UnitPeriod::CanEditActuals( selection, periodSpecForActual, false, feedback );
  *]
}
