Skip to content

Modify Event OnBeforeCheckBlockedCust on Customer Table #29640

@DamianoCastagna77

Description

@DamianoCastagna77

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions