Codeunit 1607 GLN Calculator

Base Application, Microsoft.Utilities

Source AL, 56 lines

src/Layers/W1/BaseApp/Utilities/GLNCalculator.Codeunit.allines 7 to 22 of 56, Copyright (c) Microsoft Corporation. MIT

codeunit 1607 "GLN Calculator"{    trigger OnRun()    begin    end;    var#pragma warning disable AA0470        GLNLengthErr: Label 'The GLN length should be %1 and not %2.';        GLNCheckDigitErr: Label 'The GLN %1 is not valid.';#pragma warning restore AA0470    procedure AssertValidCheckDigit13(GLNValue: Code[20])    begin        if not IsValidCheckDigit(GLNValue, 13) then

All 56 lines

Events 1 in 29

[IntegrationEvent] OnBeforeIsValidCheckDigit(GLNValue: Code[20]; ExpectedSize: Integer; var IsValid: Boolean; var IsHandled: Boolean)17-29

Public procedures 2 in 29

AssertValidCheckDigit13(GLNValue: Code[20])17-29
IsValidCheckDigit13(GLNValue: Code[20]): Boolean17-29