---
id: change/bcapps/9426
type: change
title: "#9426 [E-Document Formats] Migrate NAV PRs 247170 and 247176 into BCApps"
summary: PINT A-NZ and Factura-E e-document formats are migrated to the structured import pipeline with new IStructuredFormatReader implementations that parse XML directly into purchase draft staging tables.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - page e-doc. readable purchase doc.
  - codeunit e-document peppol utility
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:41.882Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 03a98e8e2d2befa4777f9d19e136467de26582b2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9426
    title: "microsoft/BCApps#9426: [E-Document Formats] Migrate NAV PRs 247170 and 247176 into BCApps"
    date: "2026-07-23"
    commit: 03a98e8e2d2befa4777f9d19e136467de26582b2
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/6182
    - object/codeunit/6401
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9426
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9426
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-23T07:20:12Z"
author: Groenbech96
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 16
  additions: 1902
  deletions: 3
  al: 2
apps:
  - EDocument
objects_touched:
  - key: page/6182
    page: page/6182
    type: page
    id: 6182
    name: E-Doc. Readable Purchase Doc.
    app: EDocument
    status: modified
  - key: codeunit/6401
    page: codeunit/6401
    type: codeunit
    id: 6401
    name: E-Document PEPPOL Utility
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 580191
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9426 [E-Document Formats] Migrate NAV PRs 247170 and 247176 into BCApps

> PINT A-NZ and Factura-E e-document formats are migrated to the structured import pipeline with new IStructuredFormatReader implementations that parse XML directly into purchase draft staging tables.

[Pull request](https://github.com/microsoft/BCApps/pull/9426) · merged into `main` (BC30) on 2026-07-23 by Groenbech96 · 16 files (+1902 -3), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New EDocumentPINTANZHandler and EDocumentFacturaEHandler codeunits implement IStructuredFormatReader.ReadIntoDraft to parse UBL invoice/credit-memo and Factura-E 3.2.2 XML formats
- E-Document PEPPOL Utility codeunit provides shared reusable logic for extracting PEPPOL BIS 3.0 UBL data (namespaces, parties, amounts, lines, attachments, currency)
- SetBuffer method on E-Doc. Readable Purchase Doc. page promoted from internal to public to allow format readers to present extracted data without persisting drafts
- Enum extensions register new handlers on E-Doc. Read into Draft enumeration for both formats
- Comprehensive structured integration tests added covering content extraction, purchase invoice creation with auto-matched item references, and draft line updates
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6182 "E-Doc. Readable Purchase Doc."](../../objects/page/6182.md), EDocument: modified
- [Codeunit 6401 "E-Document PEPPOL Utility"](../../objects/codeunit/6401.md), EDocument: modified

## Context

- Work items: AB#580191
- Labels: AL: Apps (W1), Ownership: Needs Review, Team: Other
- Systems: integration

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).
