Closed gopubala closed 1 month ago
✅ Successfully linked to Azure Boards work item(s):
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.
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);
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.
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](https://github.com/user-attachments/assets/83a8a990-e2c7-48bb-a46d-734186e49d3b)
local procedure OnAfterCopyAndCheckItemCharge(PurchHeader: Record "Purchase Header";IsHandled) begin end; nnedt oskip the Error![image](https://github.com/user-attachments/assets/980ba789-6730-4178-baf6-5b9cab3f78e7)
Additional context
please add the New Events Internal work item: AB#542670