ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] T5740 TransferHeader OnBeforeValidateTransferToCode

Open BWilczewski opened this issue 6 years ago • 1 comments

Hello, I would like to request an event in Transfer-to Code

field(2; "Transfer-to Code"; Code[10])
        {
            Caption = 'Transfer-to Code';
            TableRelation = Location WHERE("Use As In-Transit" = CONST(false));

            trigger OnValidate()
            var
                Location: Record Location;
                Confirmed: Boolean;
                IsHandled: Boolean;
            begin
                TestStatusOpen;

                IsHandled := false;
                OnBeforeValidateTransferToCode(Rec, xRec, IsHandled);
                if IsHandled then
                    exit;

              ...

just like it is in Transfer-from Code. This would allow to handle custom validation. Event is in the codebase but its never raised, looks like a bug.

Thanks, Bartek

BWilczewski avatar Aug 19 '20 13:08 BWilczewski

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Sep 03 '20 09:09 bc-ghost