Skip to content

[Event Request] codeunit 90 "Purch.-Post" - OnAfterPurchInvLineInsert #30285

Description

@auzhhv

Why do you need this change?

Can I get access to SrcCode in event OnAfterPurchInvLineInsert in Purch-Post?

                    OnAfterPurchInvLineInsert(
                        PurchInvLine, PurchInvHeader, PurchLine, ItemLedgShptEntryNo, WhseShip, WhseReceive, SuppressCommit,
                        PurchHeader, PurchRcptHeader, TempWhseRcptHeader, ItemJnlPostLine, SrcCode);
    [IntegrationEvent(false, false)]
    local procedure OnAfterPurchInvLineInsert(var PurchInvLine: Record "Purch. Inv. Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchLine: Record "Purchase Line"; ItemLedgShptEntryNo: Integer; WhseShip: Boolean; WhseReceive: Boolean; CommitIsSupressed: Boolean; PurchHeader: Record "Purchase Header"; PurchRcptHeader: Record "Purch. Rcpt. Header"; TempWhseRcptHeader: Record "Warehouse Receipt Header"; var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; SourceCode: Code[10])
    begin
    end;

Describe the request

I need the SourceCode used during the posting as it can be changed in OnCheckAndUpdateOnAfterSetSourceCode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions