Skip to content

[Event Request] Table 81 "Gen. Journal Line" - OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo #29835

@KateDovgalova

Description

@KateDovgalova

Why do you need this change?

In 4PS Construct we would like to run additional checks and modify General Journal Line before checking on "Applies-to Doc. No." and executing PaymentToleranceMgt.DelPmtTolApllnDocNo in "Applies-to Doc. No." - OnValidate.

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo' to be added to trigger "Applies-to Doc. No." - OnValidate in Table 81 "Gen. Journal Line".

        field(36; "Applies-to Doc. No."; Code[20])
        {

            trigger OnValidate()
            var
                CustLedgEntry: Record "Cust. Ledger Entry";
                VendLedgEntry: Record "Vendor Ledger Entry";
                TempGenJnlLine: Record "Gen. Journal Line" temporary;
                IsHandled: Boolean;
            begin
                IsHandled := false;
                OnBeforeValidateAppliesToDocNo(Rec, xRec, CurrFieldNo, SuppressCommit, IsHandled);
                if IsHandled then
                    exit;
                if SuppressCommit then
                    PaymentToleranceMgt.SetSuppressCommit(true);

                if "Applies-to Doc. No." <> xRec."Applies-to Doc. No." then
                    ClearCustVendApplnEntry();

                OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo(Rec, SuppressCommit); //new

                if ("Applies-to Doc. No." = '') and (xRec."Applies-to Doc. No." <> '') then begin
                    PaymentToleranceMgt.DelPmtTolApllnDocNo(Rec, xRec."Applies-to Doc. No.");


    [IntegrationEvent(false, false)]
    local procedure OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo(var GenJnlLine: Record "Gen. Journal Line"; SuppressCommit: Boolean)
    begin
        //new
    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