Table 980 'Payment Registration Setup' - OnBeforeValidateMandatoryFields event
Why do you need this change?
Dear Microsoft Team, I would like to request a new event, OnBeforeValidateMandatoryFields, in the procedure ValidateMandatoryFields of a table Payment Registration Setup. Custom logic needs to be implemented for this procedure. Specifically, the fields 'Bal. Account Type' and 'Bal. Account No.' should be allowed to remain empty without causing an error, while making the other fields mandatory.
Describe the request
I would like to request a new event, OnBeforeValidateMandatoryFields, in the procedure ValidateMandatoryFields of a table Payment Registration Setup. Please implement these changes in the BC25 version.
Event Code:
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateMandatoryFields(var PaymentRegistrationSetup: Record "Payment Registration Setup"; ShowError: Boolan; var Result: Boolean; var IsHandled: Boolean)
begin
end;
Procedure Code:
procedure ValidateMandatoryFields(ShowError: Boolean): Boolean
var
GenJnlBatch: Record "Gen. Journal Batch";
ResultL Boolean;
IsHandled: Boolean;
begin
IsHandled := false
OnBeforeValidateMandatoryFields(Rec,ShowError, Result, IsHandled);
if IsHandled then
exit(Result);
...
end;
Internal work item: AB#597134
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: