Quintiq file version 2.0
#parent: #root
Method GetChangeOfForecastNettingWarningDialog (
  String forecastnettingrule
) id:Method_FormGeneralSettings_GetChangeOfForecastNettingWarningDialog
{
  #keys: '[151892.2.1299440524]'
  Body:
  [*
    // Prompt user with warning dialog if user changed forecast netting rule
    
    hasnewforecastnettingrule := MacroPlan.GlobalParameters_MP().ForecastNettingRule() <> forecastnettingrule
                                
    
    if( hasnewforecastnettingrule )
    {
      message := Translations::MP_GlobalParameter_ForecastNettingRule_Changed();
      showModal := true;
      WebMessageBox::Warning( message, Translations::MessageBox_OK(), showModal )
    }
  *]
}
