Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] Codeunit 333 - Req. Wksh.-Make Order - OnBeforeUpdateAssociatedSalesLine #27707

Open
passion4dev opened this issue Nov 26, 2024 · 0 comments
Labels
event-request Request for adding an event SCM GitHub request for SCM area

Comments

@passion4dev
Copy link
Contributor

passion4dev commented Nov 26, 2024

Describe the request

Dear ALAppExtensions team,

Through this issue we would like to request event publisher OnBeforeUpdateAssociatedSalesLine to be added to Codeunit 333 Req. Wksh.-Make Order with the following signature:

    [IntegrationEvent(false, false)]
    local procedure OnBeforeUpdateAssociatedSalesLine(var PurchOrderLine: Record "Purchase Line"; var RequisitionLine: Record "Requisition Line"; var IsHandled: Boolean)
    begin
    end;

which would be called as follows from InsertPurchOrderLine:

        if ReqLine2.Reserve then
            ReserveBindingOrderToPurch(PurchOrderLine, ReqLine2);

        IsHandled := false; //new
        OnBeforeUpdateAssociatedSalesLine(PurchOrderLine, ReqLine2, IsHandled); //new
        if not IsHandled then //new
            if PurchOrderLine."Drop Shipment" or PurchOrderLine."Special Order" then begin

Additional context

We would like to be able to connect the special order purchase line to a service line.
Internal work item: AB#558867

@ChethanT ChethanT added event-request Request for adding an event SCM GitHub request for SCM area labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event-request Request for adding an event SCM GitHub request for SCM area
Projects
None yet
Development

No branches or pull requests

2 participants