Quintiq file version 2.0
#parent: #root
Method PopulateScenarioComparisonPISPIPs (
  structured[MacroPlan] macroplans,
  structured[Period_MP] activeperiods,
  structured[Product_MP] products,
  structured[StockingPoint_MP] sps
) id:Method_ApplicationMacroPlanner_PopulateScenarioComparisonPISPIPs
{
  #keys: '[138546.0.72219407]'
  Body:
  [*
    // Populate scenario comparison pispips
    p := selectset( macroplans, Elements.Product_MP, product, product.IsForProduct( products ) )
    
    pispips := selectset( p, Elements.ProductInStockingPoint_MP.ProductInStockingPointInPeriod, pispip,
                          pispip.IsInStockingPoint( sps )
                          and pispip.Period_MP().IsInPeriods( activeperiods ) )
    
    DataHolderScenarioComparisonPISPIPs.Data( &pispips );
    DataHolderScenarioComparisonPISPIPs.Data();
  *]
}
