microsoft / ALAppExtensions

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

[Event Request] Codeunit 90 Purch.-Post #26910

Closed gopubala closed 1 month ago

gopubala commented 1 month ago

Describe the request

Hello, in Codeunit 90 "Purch..-Post " in procedure "CopyAndCheckItemCharge", we need a new event as such: [IntegrationEvent(false, false)] local procedure OnBeforeCopyAndCheckItemCharge(PurchHeader: Record "Purchase Header";) begin end; image

local procedure OnAfterCopyAndCheckItemCharge(PurchHeader: Record "Purchase Header";IsHandled) begin end; nnedt oskip the Error image

Additional context

please add the New Events Internal work item: AB#542670

azure-boards[bot] commented 1 month ago

✅ Successfully linked to Azure Boards work item(s):

AleksandricMarko commented 1 month ago

Hello @gopubala

Please define full structure of the needed events (parameters, using VAR, etc...) and also short explanation what is the purpose of the desired events.

gopubala commented 1 month ago

Hello,

the purpose of these events, customer want to check some conditions based on setup.

the event look like the structure [IntegrationEvent(false, false)]

local procedure OnBeforeCopyAndCheckItemCharge(PurchHeader: Record "Purchase Header";) begin end;

End of the function CopyAndCheckItemCharge(), customer want to skip the standard error message.

local procedure OnAfterCopyAndCheckItemCharge(PurchHeader: Record "Purchase Header";IsHandled: boolean) begin end;

we want to skip the below standard code & should allow custom code. IF InvoiceEverything AND AssignError THEN ERROR(MustAssignErr);

JesperSchulz commented 1 month ago

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: 22697.