ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 6620 "Copy Document Mgt."- OnAfterSalesToPurchLine

Open Pepito-lab opened this issue 5 years ago • 6 comments

Hi, would it be possible to get an event OnAfterSalesToPurchLine codeunit 6620 "Copy Document Mgt.", like this :

    procedure TransfldsFromSalesToPurchLine(var FromSalesLine: Record "Sales Line"; var ToPurchLine: Record "Purchase Line")
    var
        DimMgt: Codeunit DimensionManagement;
        DimensionSetIDArr: array[10] of Integer;
        IsHandled: Boolean;
                Validate(Quantity, FromSalesLine."Outstanding Quantity");
            Validate("Return Reason Code", FromSalesLine."Return Reason Code");
            Validate("Direct Unit Cost");
            Description := FromSalesLine.Description;
            "Description 2" := FromSalesLine."Description 2";
            IsHandled:= false;
            OnAfterSalesToPurchLine(FromSalesLine);
            if not IsHandled then
                exit;
            if "Dimension Set ID" <> FromS
    [IntegrationEvent(false, false)]
    local procedure OnAfterSalesToPurchLine(var FromSalesLine: Record "Sales Line")
    begin
    end;

Thanks!

Pepito-lab avatar Feb 24 '21 09:02 Pepito-lab

Hi @Pepito-lab . The event by itself and its' processing looks strange. Why do you need to exit there, you don't need dimension set or what? Is it ok if we add "IsHandled->exit" pattern in the beginning of the procedure and you will be able to process it how you want?

RomanZanizdra avatar Mar 01 '21 20:03 RomanZanizdra

@Pepito-lab , any update from your side?

RomanZanizdra avatar Mar 05 '21 21:03 RomanZanizdra

Closed by mistake, missed button control.

RomanZanizdra avatar Mar 05 '21 21:03 RomanZanizdra

@Pepito-lab , let's close this request for now. Feel free to reopen it when you will have the possibility to provide the answer.

RomanZanizdra avatar Mar 25 '21 14:03 RomanZanizdra

Hi, we need to exit here because we didn't use the rest of the procedure and we need to add our code. Thank you.

Pepito-lab avatar Jun 09 '21 15:06 Pepito-lab

Please open a new request if still need event.

RomanZanizdra avatar Aug 19 '21 07:08 RomanZanizdra