ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] codeunit 444 "Purchase-Post Prepayments" - OnCodeOnBeforeThrowPreviewModeError
Hi,
Is it possible to add OnCodeOnBeforeThrowPreviewModeError publisher to "Purchase-Post Prepayments" codeunit?
local procedure "Code"(var PurchHeader2: Record "Purchase Header"; DocumentType: Option Invoice,"Credit Memo")
.
.
.
.
.
Modify;
end;
// <<new
OnCodeOnBeforeThrowPreviewModeError (PurchHeader, PurchInvHeader, PurchCrMemoHeader, GenJnlPostLine, PreviewMode);
// >>new
PurchHeader2 := PurchHeader;
if PreviewMode then begin
Window.Close;
GenJnlPostPreview.ThrowError;
end;
OnAfterPostPrepayments(PurchHeader2, DocumentType, SuppressCommit, PurchInvHeader, PurchCrMemoHeader);
end;
// <<new
[IntegrationEvent(false, false)]
local procedure OnCodeOnBeforeThrowPreviewModeError (var PurchaseHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PreviewMode: Boolean)
begin
end;
// >>new
Hi, any update on this request?
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 46663.