ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 7311 - OnBeforeCheckName

Open kwettermann opened this issue 7 years ago • 0 comments

Please add a new integration event OnBeforeCheckName in Table 7311.

    [External]
    PROCEDURE CheckName@10(CurrentJnlBatchName@1000 : Code[10];CurrentLocationCode@1003 : Code[10];VAR WhseJnlLine@1001 : Record 7311);
    VAR
      WhseJnlBatch@1002 : Record 7310;
      WhseEmployee@1004 : Record 7301;
+     IsHandled@100000000: Boolean;
    BEGIN
+     IsHandled := FALSE;
+     OnBeforeCheckName(IsHandled);
+     IF IsHandled THEN
+       EXIT;
      WhseJnlBatch.GET(
        WhseJnlLine.GETRANGEMAX("Journal Template Name"),CurrentJnlBatchName,CurrentLocationCode);
      IF (USERID <> '') AND NOT WhseEmployee.GET(USERID,CurrentLocationCode) THEN
        ERROR(Text005,CurrentLocationCode,CurrentJnlBatchName,USERID);
    END;

New integration event

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

kwettermann avatar Mar 28 '19 14:03 kwettermann