---
id: change/bcapps/9878
type: change
title: "#9878 Add buyer order reference to ZUGFeRD export"
summary: ZUGFeRD export now includes the buyer order reference as BuyerOrderReferencedDocument to associate invoices with customer purchase orders, matching other German e-document formats.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit export zugferd document
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:09:39.068Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e83fb30c3dd6151b96777240cdb1e678c79fd4f7
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9878
    title: "microsoft/BCApps#9878: Add buyer order reference to ZUGFeRD export"
    date: "2026-08-12"
    commit: e83fb30c3dd6151b96777240cdb1e678c79fd4f7
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/13917-de
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9878
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9878
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-12T10:31:44Z"
author: djukicmilica
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 2
  additions: 43
  deletions: 1
  al: 1
apps:
  - EDocumentDE
objects_touched:
  - key: codeunit/13917
    page: codeunit/13917-de
    type: codeunit
    id: 13917
    name: Export ZUGFeRD Document
    app: EDocumentDE
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 644035
systems:
  - integration
quote: null
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #9878 Add buyer order reference to ZUGFeRD export

> ZUGFeRD export now includes the buyer order reference as BuyerOrderReferencedDocument to associate invoices with customer purchase orders, matching other German e-document formats.

[Pull request](https://github.com/microsoft/BCApps/pull/9878) · merged into `main` (BC30) on 2026-08-12 by djukicmilica · 2 files (+43 -1), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- External document number is now exported as BuyerOrderReferencedDocument/IssuerAssignedID
- Change applies to ZUGFeRD sales invoices and credit memos
- Aligns ZUGFeRD export with other German e-document format implementations
- Regression test added for posted sales invoice export
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 13917 "Export ZUGFeRD Document"](../../objects/codeunit/13917-de.md), EDocumentDE (DE layer): modified

## Context

- Work items: AB#644035
- Labels: Team: Finance
- 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).
