ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 38 "Purchase Header" - CheckDropShipmentLineExists function

Open mplze opened this issue 3 years ago • 1 comments

Hi, would it be possible to get an event in CheckDropShipmentLineExists function in the Purchase header table?

 local procedure CheckDropShipmentLineExists()
 var
   SalesShipmentLine: Record "Sales Shipment Line";
   IsHandled: Boolean;
 begin
    OnBeforeApplyFilterDropShipmentLineExists(SalesShipmentLine,IsHandled)
    if IsHandled then
       exit;

    SalesShipmentLine.SetRange("Purchase Order No.", "No.");
    SalesShipmentLine.SetRange("Drop Shipment", true);
    if not SalesShipmentLine.IsEmpty() then
       Error(YouCannotChangeFieldErr, FieldCaption("Buy-from Vendor No."));
    end;
[IntegrationEvent(false, false)]
local procedure OnBeforeApplyFilterDropShipmentLineExists(var SalesShipmentLine: Record "Sales Shipment Line"; var IsHandled: Boolean)
begin
end;

mplze avatar Oct 17 '23 09:10 mplze

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. 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.

Build ID: 13270.

JesperSchulz avatar Oct 24 '23 12:10 JesperSchulz