Quintiq file version 2.0
#parent: #root
Method PopulateScenarioComparisonUnitPeriods (
  structured[MacroPlan] macroplans,
  structured[Period_MP] activeperiods,
  structured[Unit] units
) id:Method_ApplicationMacroPlanner_PopulateScenarioComparisonUnitPeriods
{
  #keys: '[138546.0.72187803]'
  Body:
  [*
    // Populate macroplans unit periods data
    u := selectset( macroplans, Elements.Unit, unit, unit.IsInUnit( units ) )
    
    ups := selectset( u, Elements.UnitPeriod, up,
                      up.Period_MP().IsInPeriods( activeperiods ) );
    
    DataHolderScenarioComparisonUnitPeriods.Data( &ups );
    DataHolderScenarioComparisonUnitPeriods.Data();
  *]
}
