| Quintiq file version 2.0 | 
| #parent: #root | 
| Method CreateShadowAcountAssignmentInPeriodForPISPAccount ( | 
|   shadow[GlobalParameters_MP] owner, | 
|   structured[PISPAccount] pispas, | 
|   structured[Period_MP] activeperiods | 
| ) id:Method_FormScenarioAnalysisCosts_CreateShadowAcountAssignmentInPeriodForPISPAccount | 
| { | 
|   #keys: '[138546.0.808325958]' | 
|   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 ); | 
|          | 
|         this.CreateAccountAssignmentInPeriod( owner,  | 
|                                               pispip.Period_MP(),  | 
|                                               pispa, | 
|                                               basecost ); | 
|       } | 
|     } | 
|   *] | 
| } |