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 );
  *]
}
