[Event Request] Table 36 "Sales Header" - OnBeforeValidateCustomerDiscGroup #27705
Labels
event-request
Request for adding an event
SCM
GitHub request for SCM area
ships-in-future-update
Fix ships in a future update
Describe the request
In Table 36, please include the OnBeforeValidateCustomerDiscGroup event within the OnValidate trigger of the "Customer Disc. Group" field.
Actual Code:
trigger OnValidate()
begin
TestStatusOpen();
MessageIfSalesLinesExist(FieldCaption("Customer Disc. Group"));
end;
Required Code with a new event request:
trigger OnValidate()
var
IsHandled: Boolean;
begin
IsHandled := false;
OnBeforeValidateCustomerDiscGroup(Rec, xRec, CurrFieldNo, IsHandled);
if IsHandled then
exit;
TestStatusOpen();
MessageIfSalesLinesExist(FieldCaption("Customer Disc. Group"));
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateCustomerDiscGroup(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; CurrentFieldNo: Integer; var IsHandled: Boolean)
begin
end;
Additional context
This new event is necessary to enable subscription for implementing custom code and to provide the option to bypass the base code when needed.
Internal work item: AB#558865
The text was updated successfully, but these errors were encountered: