Skip to content

[Event Request] Table 11401 "CBG Statement Line" - OnValidateIdentificationOnBeforeCheckCurrency #29944

Description

@KateDovgalova

Why do you need this change?

In 4PS Construct we need to extend check on "Currency Code" by allowing combination of empty currency code and LCY code. In order to do so we need to be able to skip standard check.
We also need to copy additional field value from CBGStatementLine to current line.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnValidateIdentificationOnBeforeCheckCurrency' to be added to trigger Identification - OnValidate in table 11401 "CBG Statement Line".

                    IsHandled := false; //new
                    OnValidateIdentificationOnBeforeCheckCurrency(PaymentHistLine, CBGStatement, Rec, CBGStatementLine, IsHandled); //new
                    if not IsHandled then //new
                        if CBGStatement.Currency <> PaymentHistLine."Currency Code" then
                            Error(Text1000006,
                              CBGStatement.Currency, PaymentHistLine."Currency Code");
    [IntegrationEvent(false, false)]
    local procedure OnValidateIdentificationOnBeforeCheckCurrency(PaymentHistLine: Record "Payment History Line"; CBGStatement: Record "CBG Statement"; var CBGStatementLine: Record "CBG Statement Line"; CBGStatementLine2: Record "CBG Statement Line"; var IsHandled: Boolean)
    begin
        //new
    end;

Internal work item: AB#632871

Metadata

Metadata

Assignees

No one assigned

    Labels

    FinanceGitHub request for Finance areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions