From ab469f9de1c0e446965e0d926ee0769e51a90cdc Mon Sep 17 00:00:00 2001 From: hongjli <3117313295@qq.com> Date: 星期三, 11 十月 2023 09:15:15 +0800 Subject: [PATCH] 添加物料标签视图 --- _Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/_Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl b/_Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl index afe440f..d989131 100644 --- a/_Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl +++ b/_Main/BL/Type_CapacityAllocationResultsRuleConfiguration/StaticMethod_AutomaticallyGenerateCapacityRules.qbl @@ -9,8 +9,15 @@ [* targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = "Chassis - SUV 1" ); + period_MPS := null( Period_MPs ); + traverse ( macroPlan, PeriodSpecification_MP, psmp, psmp.ID() = "Planning periods" ) { + period_MPS := selectsortedset( psmp, PeriodSpecificationPeriod.Period_MP, pmp, not pmp.IsHistorical(), pmp.StartDate() ); + } + traverse ( targetProduct_MP, ProductInStockingPoint_MP, pisp ) { - CapacityAllocationResultsRuleConfiguration::RecursiveGeneration( macroPlan, pisp ); + traverse ( period_MPS, Elements, pmp ) { + CapacityAllocationResultsRuleConfiguration::RecursiveGeneration( macroPlan, pisp, pisp, pmp.StartDate() ); + } } *] } -- Gitblit v1.9.3