ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 36 - Sales Header - OnBeforeLookupReturnReceiptNoSeries

Open MattiLE opened this issue 7 years ago • 3 comments

Hi AL-Team, can you please add the following Publisher with Handled Pattern to Return Receipt No. Series OnLookup?

trigger OnLookup()
            var
                Handled: Boolean;
            begin
                // NEW >>>>
                OnBeforeLookupReturnReceiptNoSeries(Rec, Handled);
                if Handled then
                    exit;
                // NEW <<<<
                with SalesHeader do begin
                    SalesHeader := Rec;
                    GetSalesSetup;
                    SalesSetup.TestField("Posted Return Receipt Nos.");
                    if NoSeriesMgt.LookupSeries(SalesSetup."Posted Return Receipt Nos.", "Return Receipt No. Series") then
                        Validate("Return Receipt No. Series");
                    Rec := SalesHeader;
                end;
            end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeLookupReturnReceiptNoSeries(var Rec: Record "Sales Header"; var Handled: Boolean)
    begin
    end;

MattiLE avatar Nov 25 '19 11:11 MattiLE

Alternatively, a function that returns the number series code can be implemented.

MattiLE avatar Nov 26 '19 10:11 MattiLE

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 Dec 05 '19 05:12 bc-ghost

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 Dec 13 '19 14:12 bc-ghost