Quintiq file version 2.0
#parent: Panel675/ButtonClear
Response OnClick () id:Response_Panel675_ButtonClear_OnClick
{
  #keys: '[414724.0.58894009]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    return not isnull( MacroPlan);
  *]
  QuillAction
  {
    Body:
    [*
      try{
        H_FunctionClass::UpdateAuthorizeRealQty( MacroPlan);
        /*
        ExecuteCount :=0;
        while(not isnull(MacroPlan.H_ReverseRealQty(relget ).First())  and ExecuteCount<20)
        {
          MacroPlan.H_ErrorLogs(relnew,EClassName := "1",EDateTime := DateTime::ActualGMTTime(),EFunctionName := ExecuteCount.AsQUILL());
          ExecuteCount:=ExecuteCount+1;
          MacroPlan.H_ReverseRealQty(relget ).First().Delete();
        }
        */
      }
      onerror{
        MacroPlan.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "UpdateMaterialItems",
                             DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
                             GeneralInformation := e.GeneralInformation());
      }
    *]
  }
}
