Skip to content

[Event Request] Codeunit 5760 "Whse.-Post Receipt" #28975

@Nagaraju17

Description

@Nagaraju17

Why do you need this change?

I Need extra parameter with var type in existing event publisher.

        Database::"Transfer Line":
            begin
                IsHandled := false;
                OnPostSourceDocumentOnBeforePostTransferHeader(TransHeader, WarehouseReceiptHeader, SuppressCommit, CounterSourceDocOK, IsHandled);
                if not IsHandled then begin
                    if HideValidationDialog then
                        TransferPostReceipt.SetHideValidationDialog(HideValidationDialog);
                    TransferPostReceipt.SetWhseRcptHeader(WarehouseReceiptHeader);
                    TransferPostReceipt.SetSuppressCommit(SuppressCommit or PreviewMode);
                    TransferPostReceipt.SetPreviewMode(PreviewMode);
                    TransferPostReceipt.SetCalledBy(Codeunit::"Whse.-Post Receipt");
                    if PreviewMode then
                        PostSourceTransferDocument(TransferPostReceipt)
                    else
                        case WarehouseSetup."Receipt Posting Policy" of
                            WarehouseSetup."Receipt Posting Policy"::"Posting errors are not processed":
                                PostTransferErrorsNotProcessed(TransferPostReceipt);
                            WarehouseSetup."Receipt Posting Policy"::"Stop and show the first posting error":
                                PostSourceTransferDocument(TransferPostReceipt);
                        end;
                end;
                OnPostSourceDocumentOnAfterPostTransferHeader(TransHeader);
                Clear(TransferPostReceipt);
            end;
        else
            **OnPostSourceDocument(WarehouseReceiptHeader, WarehouseReceiptLine);**
    end;

    OnAfterPostSourceDocument(WarehouseReceiptLine);
end;

Describe the request

We need extra parameter "CounterSourceDocOk" with var type to update the count of No. of source documents. Which will be displayed after posting the warehouse receipts. like below

[IntegrationEvent(false, false)]
local procedure OnPostSourceDocument(var WhseReceiptHeader: Record "Warehouse Receipt Header"; var WhseReceiptLine: Record "Warehouse Receipt Line";CounterSourceDocOk :Integer)
begin
end;
Internal work item: AB#596548

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions