Quintiq file version 2.0
#parent: #root
Method CreateShadowAcountAssignmentInPeriodForPISPAccount (
  structured[PISPAccount] pispas,
  structured[Period_MP] activeperiods
) id:Method_FormCostsForScenarioComparison_CreateShadowAcountAssignmentInPeriodForPISPAccount
{
  #keys: '[127710.1.755579604]'
  Body:
  [*
    // Generate AAiP for PISP accounts
    
    traverse( pispas, Elements, pispa )
    {
      traverse( pispa, LeafPISP.ProductInStockingPointInPeriod, pispip, pispip.Period_MP().IsInPeriods( activeperiods ) )
      {
        costinperiod := 0.0;
        basecost := pispa.GetBaseCost( costinperiod, pispip );
        
        FormCostsForScenarioComparison.CreateAccountAssignmentInPeriod( pispip.Period_MP(), pispa, costinperiod, basecost );
      }
    }
  *]
}
