Skip to content

[Event Request] Codeunit 11000000 "Process Proposal Lines" - OnCheckAProposalLineOnBeforeCheckDetailLine #29976

@KateDovgalova

Description

@KateDovgalova

Why do you need this change?

In 4PS Construct we need to run additional check on IBAN and SWIFT Code in Proposal Line before checking the Detail Line in procedure CheckAProposalLine of codeunit 11000000 "Process Proposal Lines"

Describe the request

Dear ALAppExtensions team,

On behalf of 4PS I would like to request integration event 'OnCheckAProposalLineOnBeforeCheckDetailLine' to be added to procedure CheckAProposalLine in codeunit 11000000 "Process Proposal Lines":

        if (CheckRecord."Foreign Currency" <> '') and
           (CheckRecord."Foreign Amount" = 0)
        then
            if OurBnk."Currency Code" <> CheckRecord."Foreign Currency" then begin
                Errortext :=
                  StrSubstNo(
                    Text1000028, CheckRecord.FieldCaption("Foreign Currency"), CheckRecord.FieldCaption("Foreign Amount")
                    );
                exit(false);
            end;

        res := true; //new
        OnCheckAProposalLineOnBeforeCheckDetailLine(CheckRecord, Warningstext, Errortext, res); //new
        if not res then //new
            exit(false); //new

        // /////////////////////////////////////////////////////////////////////
        // Per detail line
    [IntegrationEvent(false, false)]
    local procedure OnCheckAProposalLineOnBeforeCheckDetailLine(CheckRecord: Record "Proposal Line"; var Warningstext: Text[125]; var ErrorText: Text[125]; var Result: Boolean)
    begin
        //new
    end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-infoThe issue misses information that prevents it from completion.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions