xiaoding721
2023-11-13 e4edcfd0b987b239526f5375881b919789782dad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
Method CheckExistParamAndProfile (
  output String feedback_o,
  ProductInStockingPointInPeriod pispip,
  Real newvalue
) as Boolean id:Method_FormProductPlanningMatrix_CheckExistParamAndProfile
{
  #keys: '[133706.0.596192150]'
  Body:
  [*
    // Check whether the params and profiles are there (Used in precond )
    run := MacroPlan.Optimization().GetLastSmartPlanAlgorithmRun( false /*issmartplanforperiodtask*/ );
    return ProductInStockingPointInPeriod::ValidateSmartPlan( feedback_o,
                                                              ScenarioManager,
                                                              DataHolderActiveScenario.Data(),
                                                              AlgorithmRun::GetLastStrategyUsed( MacroPlan.GlobalParameters_MP(), run, ScenarioManager, true, true ),
                                                              pispip, // pispip
                                                              true, // hastotalusersupply
                                                              newvalue );
  *]
}