Quintiq file version 2.0 #parent: #root Method CreateShadowAcountAssignmentInPeriod ( structured[AccountAssignment] accountassignments ) id:Method_FormCostsForScenarioComparison_CreateShadowAcountAssignmentInPeriod { #keys: '[127710.1.702458214]' Body: [* // Generate account cost in period shadow instances activePeriods := DataHolderActivePeriods.Data(); // Clear data holder DataHolderShadowGlobalParameters.Data( null( shadow[GlobalParameters_MP], owning ) ); //Ownership on GP so that it is possible to show multi rows when multiple accounts are selected. owner := shadow( MacroPlan.GlobalParameters_MP() ); DataHolderShadowGlobalParameters.Data( &owner ); //create AAiP of different types uas := selectset( accountassignments, Elements.astype( UnitAccount ), ua, true, true ); Form.CreateShadowAcountAssignmentInPeriodForUnitAccount( uas, activePeriods ); spas := selectset( accountassignments, Elements.astype( StockingPointAccount ), spa, true, true ); Form.CreateShadowAcountAssignmentInPeriodForStockingPointAccount ( spas, activePeriods ); pispas := selectset( accountassignments, Elements.astype( PISPAccount ), pispa, true, true ); Form.CreateShadowAcountAssignmentInPeriodForPISPAccount( pispas, activePeriods ); *] }