[Event Request] Table 36 - Sales Header - OnBeforeLookupShippingNoSeries
Hi AL-Team, can you please add the following Publisher with Handled Pattern to Shipping No. Series OnLookup?
trigger OnLookup()
var
Handled: Boolean;
begin
// NEW >>>>
OnBeforeLookupShippingNoSeries(Rec, Handled);
if Handled then
exit;
// NEW <<<<
with SalesHeader do begin
SalesHeader := Rec;
GetSalesSetup;
SalesSetup.TestField("Posted Shipment Nos.");
if NoSeriesMgt.LookupSeries(SalesSetup."Posted Shipment Nos.", "Shipping No. Series") then
Validate("Shipping No. Series");
Rec := SalesHeader;
end;
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeLookupShippingNoSeries(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.