[Event Request] Table 36 - Sales Header - OnBeforeLookupReturnReceiptNoSeries
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;
Alternatively, a function that returns the number series code can be implemented.
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.
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.