-
Notifications
You must be signed in to change notification settings - Fork 687
Closed
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
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
Labels
SCMGitHub request for SCM areaGitHub request for SCM areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update