ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5766 - OnBeforeErrorIfUserIsNotWhseEmployee

Open kwettermann opened this issue 7 years ago • 0 comments

Please add a new integration event OnBeforeErrorIfUserIsNotWhseEmployee in Table 5766.

  [External] 
  PROCEDURE ErrorIfUserIsNotWhseEmployee@15()
  VAR
    WhseEmployee@1000 : Record 7301;
+   IsHandled@100000000 : Boolean;	
  BEGIN
+   IsHandled := FALSE;
+   OnBeforeErrorIfUserIsNotWhseEmployee(IsHandled);
+   IF IsHandled THEN
+     EXIT;
    IF USERID <> '' THEN BEGIN
      WhseEmployee.SETRANGE("User ID",USERID);
      IF WhseEmployee.ISEMPTY THEN
        ERROR(Text001,USERID);
    END;
  END;

New integration event

[Integration]
LOCAL PROCEDURE OnBeforeErrorIfUserIsNotWhseEmployee@100000000(VAR IsHandled@100000000 : Boolean);
BEGIN
END;

kwettermann avatar Mar 28 '19 12:03 kwettermann