ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[EventRequest] Table 81 ""Applies-to Doc. No." OnBeforeLookUpAppliesToDocNo

Open dNsl9r opened this issue 6 years ago • 1 comments

Hi there, we need to change the behaviour of the Lookup for "Applies-to Doc. No.".

We need to add a lookup possibility for General Ledger Entries.

To do so, we would suggest to you to add the following event:

` field(36; "Applies-to Doc. No."; Code[20]) { Caption = 'Applies-to Doc. No.';

        trigger OnLookup()
        var
            PaymentToleranceMgt: Codeunit "Payment Tolerance Management";
            AccType: Enum "Gen. Journal Account Type";
            AccNo: Code[20];
        begin
            IsHandled := false;
            OnBeforeLookUpAppliesToDocNo(Rec, IsHandled);
            if IsHandled then
                exit;

            xRec.Amount := Amount;
            xRec."Currency Code" := "Currency Code";
            . . .

`

As you can see, a "OnBeforeLookUpAppliesToDocNo" with the IsHandled pattern would help.

dNsl9r avatar Dec 01 '20 14:12 dNsl9r

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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Dec 08 '20 11:12 JesperSchulz