Quintiq file version 2.0
#parent: #root
Method PopulateScenarioComparisonStockingPointInPeriods (
  structured[MacroPlan] macroplans,
  structured[Period_MP] activeperiods,
  structured[StockingPoint_MP] sps
) id:Method_ApplicationMacroPlanner_PopulateScenarioComparisonStockingPointInPeriods
{
  #keys: '[138546.0.72210223]'
  Body:
  [*
    // Populate spips
    s := selectset( macroplans, Elements.StockingPoint_MP, sp, sp.IsInStockingPoint( sps ) )
    
    spips := selectset( s, Elements.StockingPointInPeriod, spip,
                        spip.Period_MP().IsInPeriods( activeperiods ) )
    
    DataHolderScenarioComparisonSPIPs.Data( &spips );
    DataHolderScenarioComparisonSPIPs.Data();
  *]
}
