microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
791 stars 622 forks source link

[Event Request] Extend event "OnAfterPostPurchaseDoc" in "Purch.-Post" Codeunit with parameter PreviewMode #27663

Open JulianGeissEasy opened 1 day ago

JulianGeissEasy commented 1 day ago

Describe the request

Hi, can you extend the "OnAfterPostPurchaseDoc" Event in "Purch.-Post" codeunit with the parameter PreviewMode, same as what you did in "Sales-Post". Your current definition is (BC 25.1): [IntegrationEvent(false, false)] procedure OnAfterPostPurchaseDoc(var PurchaseHeader: Record "Purchase Header"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"; PurchRcpHdrNo: Code[20]; RetShptHdrNo: Code[20]; PurchInvHdrNo: Code[20]; PurchCrMemoHdrNo: Code[20]; CommitIsSupressed: Boolean) begin end;

Thanks :)

Additional context

Otherwise we have to BIND events as SingleInstance or use SingleInstance to get the PreviewMode in events on before posting.

Both we would like to avoid as we can in Sales-Post. Internal work item: AB#558143