ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 92 "Purch.-Post + Print" - OnBeforeConfirmPost2
Hi, would it be possible to get an event OnAfterConfirmPost2 in codeunit 92 "Purch.-Post + Print", like this :
PurchSetup.Get();
if PurchSetup."Post & Print with Job Queue" then
PurchasePostViaJobQueue.EnqueuePurchDoc(PurchHeader)
else begin
CODEUNIT.Run(CODEUNIT::"Purch.-Post", PurchHeader);
IsHandled:=false;
OnAfterConfirmPost2(PurchaseHeader,IsHandled);
if not IsHandled then
GetReport(PurchHeader);
end;
[IntegrationEvent(false, false)]
local procedure OnAfterConfirmPost2(var PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
Thanks!
Can't you use the existing event OnBeforeGetReport?
Hi I can't use the existing event, he is useless for what I want. Thanks.
Here is the OnBeforeGetReport() in the beginning of GetReport:
procedure GetReport(var PurchHeader: Record "Purchase Header")
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeGetReport(PurchHeader, IsHandled);
if IsHandled then
exit;
Why can't you use it? Explain please.