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
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