Page extension 6161 E-Doc. Vendor Page

E-Document Core

src/Apps/W1/EDocument/App/src/Extensions/EDocVendorPage.PageExt.al52 lines, Copyright (c) Microsoft Corporation. MIT

#pragma warning disable AA0247pageextension 6161 "E-Doc. Vendor Page" extends "Vendor Card"{    layout    {        addafter("Registration Number")        {            field("Use Reg. No. in E-Document"; Rec."Use Reg. No. in E-Document")            {                ApplicationArea = Basic, Suite;                ToolTip = 'Specifies whether the vendor registration number is used to identify the vendor in electronic documents when the GLN and VAT registration number are blank.';            }        }        addlast(Receiving)        {            field("Receive E-Document To"; Rec."Receive E-Document To")            {                ApplicationArea = All;                Caption = 'Receive E-Document To';                ToolTip = 'Specifies the default purchase document to be generated from received E-document. Users can select either a Purchase Invoice or Purchase Order. This selection does not affect the creation of corrective documents; in both scenarios, the system will generate a Credit Memo.';            }            field("E-Document Service Participation Ids"; ParticipantIdCount)            {                ApplicationArea = All;                Caption = 'E-Document Service Participation';                DrillDown = true;                Editable = false;                ToolTip = 'Specifies the vendors participation for the E-Document services.';                trigger OnDrillDown()                begin                    Rec.TestField("No.");                    ServiceParticipant.RunServiceParticipantPage(Enum::"E-Document Source Type"::Vendor, Rec."No.");                end;            }        }    }    var        ServiceParticipant: Codeunit "Service Participant";        ParticipantIdCount: Integer;    trigger OnAfterGetCurrRecord()    begin        if Rec."No." <> '' then            ParticipantIdCount := ServiceParticipant.GetParticipantIdCount(Enum::"E-Document Source Type"::Vendor, Rec."No.");    end;}