ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Table 980 'Payment Registration Setup' - OnBeforeValidateMandatoryFields event

Open polina-se opened this issue 1 year ago • 1 comments

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

polina-se avatar Aug 11 '25 15:08 polina-se

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

JesperSchulz avatar Sep 10 '25 07:09 JesperSchulz