Page extension 6109 E-Doc. Posted Purch. Invoices

E-Document Core, Microsoft.Purchases.History

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

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Purchases.History;using Microsoft.eServices.EDocument;pageextension 6109 "E-Doc. Posted Purch. Invoices" extends "Posted Purchase Invoices"{    layout    {        addbefore(IncomingDocAttachFactBox)        {            part(EDocumentPdfPreview; "Inbound E-Doc. Picture")            {                ApplicationArea = Basic, Suite;                Caption = 'Preview';                Visible = ShowEDocumentPdfPreview;                ShowFilter = false;            }        }    }    trigger OnAfterGetCurrRecord()    var        EDocumentHelper: Codeunit "E-Document Helper";        EDocDataStorageEntryNo: Integer;    begin        EDocDataStorageEntryNo := EDocumentHelper.GetInboundPdfPreviewEntryNo(Rec.RecordId());        ShowEDocumentPdfPreview := EDocDataStorageEntryNo <> 0;        CurrPage.EDocumentPdfPreview.Page.SetRecFilterByEDocDataStorageEntryNo(EDocDataStorageEntryNo);    end;    var        ShowEDocumentPdfPreview: Boolean;}