-
Notifications
You must be signed in to change notification settings - Fork 687
Description
Why do you need this change?
Since the document Type is an Enum, I think that also the OnBeforeCheckBlockedCust Event, on Customer Table, should accept the enum as parameter and not an option.
Extending then Sales Document Enum or the Blocked enum can generate an error trying to extend the blocked control
Describe the request
the procedure
local procedure IsOnBeforeCheckBlockedCustHandled(Customer: Record Customer; Source: Option Journal,Document; DocType: Enum "Gen. Journal Document Type"; Shipment: Boolean; Transaction: Boolean)
var
IsHandled: Boolean
begin
OnBeforeCheckBlockedCust(Customer, Source, DocType.AsInteger(), Shipment, Transaction, IsHandled)
end;
has the enum as parameter but the event has an option
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckBlockedCust(Customer: Record Customer; Source: Option Journal,Document; DocType: Option; Shipment: Boolean; Transaction: Boolean; var IsHandled: Boolean)
begin
end;
should be
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckBlockedCust(Customer: Record Customer; Source: Option Journal,Document; DocType: Enum "Gen. Journal Document Type"; Shipment: Boolean; Transaction: Boolean; var IsHandled: Boolean)
begin
end;