---
id: change/bcapps/9145
type: change
title: "#9145 [E-Document] Show PDF preview factbox on purchase invoice pages"
summary: A PDF preview factbox is added to purchase invoice pages to display the original invoice PDF linked to an inbound E-Document, appearing only when relevant and placed above the Incoming Documents factbox.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - page inbound e-doc. picture
  - pageextension e-doc. posted purch. inv.
  - pageextension e-doc. posted purch. invoices
  - pageextension e-doc. purchase invoice
  - pageextension e-doc. purchase invoices
  - codeunit e-document helper
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:13:21.437Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 5d4aa63fe672c18aa1e9f78de90173abf0abadbe
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9145
    title: "microsoft/BCApps#9145: [E-Document] Show PDF preview factbox on purchase invoice pages"
    date: "2026-07-09"
    commit: 5d4aa63fe672c18aa1e9f78de90173abf0abadbe
    t: null
    quote: This adds a read-only PDF preview factbox to Purchase Invoice (51), Purchase Invoices (9308), Posted Purchase Invoice (138) and Posted Purchase Invoices (146).
links:
  learn: []
  objects:
    - object/page/6111
    - object/pageextension/6146
    - object/pageextension/6109
    - object/pageextension/6129
    - object/pageextension/6100
    - object/codeunit/6148
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9145
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9145
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-09T16:05:49Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 6
  additions: 203
  deletions: 0
  al: 6
apps:
  - EDocument
objects_touched:
  - key: page/6111
    page: page/6111
    type: page
    id: 6111
    name: Inbound E-Doc. Picture
    app: EDocument
    status: modified
  - key: pageextension/6146
    page: pageextension/6146
    type: pageextension
    id: 6146
    name: E-Doc. Posted Purch. Inv.
    app: EDocument
    status: modified
  - key: pageextension/6109
    page: pageextension/6109
    type: pageextension
    id: 6109
    name: E-Doc. Posted Purch. Invoices
    app: EDocument
    status: added
  - key: pageextension/6129
    page: pageextension/6129
    type: pageextension
    id: 6129
    name: E-Doc. Purchase Invoice
    app: EDocument
    status: modified
  - key: pageextension/6100
    page: pageextension/6100
    type: pageextension
    id: 6100
    name: E-Doc. Purchase Invoices
    app: EDocument
    status: added
  - key: codeunit/6148
    page: codeunit/6148
    type: codeunit
    id: 6148
    name: E-Document Helper
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 624060
systems:
  - purchasing
  - integration
quote: This adds a read-only PDF preview factbox to Purchase Invoice (51), Purchase Invoices (9308), Posted Purchase Invoice (138) and Posted Purchase Invoices (146).
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9145 [E-Document] Show PDF preview factbox on purchase invoice pages

> A PDF preview factbox is added to purchase invoice pages to display the original invoice PDF linked to an inbound E-Document, appearing only when relevant and placed above the Incoming Documents factbox.

[Pull request](https://github.com/microsoft/BCApps/pull/9145) · merged into `main` (BC30) on 2026-07-09 by Explorer986 · 6 files (+203 -0), 6 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- PDF preview factbox added to Purchase Invoice, Purchase Invoices, Posted Purchase Invoice and Posted Purchase Invoices pages
- Preview is read-only and shown only when the invoice is linked to an inbound E-Document whose source file is a PDF
- Factbox sits in the Details area above the Incoming Documents factbox
- E-Document Helper resolves the linked E-Document (by E-Document Link for open invoices, Document Record ID for posted) and renders the PDF preview
- No table schema changes or new stored data
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6111 "Inbound E-Doc. Picture"](../../objects/page/6111.md), EDocument: modified
- [Page extension 6146 "E-Doc. Posted Purch. Inv."](../../objects/pageextension/6146.md), EDocument: modified
- [Page extension 6109 "E-Doc. Posted Purch. Invoices"](../../objects/pageextension/6109.md), EDocument: added
- [Page extension 6129 "E-Doc. Purchase Invoice"](../../objects/pageextension/6129.md), EDocument: modified
- [Page extension 6100 "E-Doc. Purchase Invoices"](../../objects/pageextension/6100.md), EDocument: added
- [Codeunit 6148 "E-Document Helper"](../../objects/codeunit/6148.md), EDocument: modified

## Context

- Work items: AB#624060
- Labels: AL: Apps (W1), Team: Finance
- Systems: purchasing, integration
- From the description: "This adds a read-only PDF preview factbox to Purchase Invoice (51), Purchase Invoices (9308), Posted Purchase Invoice (138) and Posted Purchase Invoices (146)."

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
