---
id: change/bcapps/12691
type: change
title: "#12691 Support customer registration number as e-document party identifier for DE"
summary: German customers can now use their registration number as the buyer identifier on outgoing e-invoices when no VAT ID or GLN is available.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit export xrechnung document
  - codeunit export zugferd document
  - codeunit peppol30 de party info
  - codeunit peppol30 de sales validation
  - pageextension e-doc. customer card
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-30T01:10:02.802Z"
  flags: []
generated:
  at: "2026-11-11T00:15:47.902Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 82e25f5ca8ed8ed87baab7d0360021cccf60e7c4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12691
    title: "microsoft/BCApps#12691: Support customer registration number as e-document party identifier for DE"
    date: "2026-10-29"
    commit: 82e25f5ca8ed8ed87baab7d0360021cccf60e7c4
    t: null
    quote: writes the customer's Registration No. as the buyer legal registration (BT-47) in PEPPOL BIS, XRechnung and ZUGFeRD
links:
  learn: []
  objects:
    - object/codeunit/13916-de
    - object/codeunit/13917-de
    - object/codeunit/37403-de
    - object/codeunit/37400-de
    - object/pageextension/6163
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Germany/germany-einvoicing
      title: Electronic invoicing in Germany
      label: possibly related
      why: Documents electronic invoicing in Germany with XRechnung and PEPPOL formats.
      by: model
number: 12691
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12691
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-29T09:52:14Z"
author: Explorer986
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: 9
  additions: 206
  deletions: 11
  al: 6
apps:
  - EDocument
  - EDocumentDE
  - PEPPOLDE
objects_touched:
  - key: codeunit/13916
    page: codeunit/13916-de
    type: codeunit
    id: 13916
    name: Export XRechnung Document
    app: EDocumentDE
    status: modified
  - key: codeunit/13917
    page: codeunit/13917-de
    type: codeunit
    id: 13917
    name: Export ZUGFeRD Document
    app: EDocumentDE
    status: modified
  - key: codeunit/37403
    page: codeunit/37403-de
    type: codeunit
    id: 37403
    name: PEPPOL30 DE Party Info
    app: PEPPOLDE
    status: modified
  - key: codeunit/37400
    page: codeunit/37400-de
    type: codeunit
    id: 37400
    name: PEPPOL30 DE Sales Validation
    app: PEPPOLDE
    status: modified
  - key: pageextension/6163
    page: pageextension/6163
    type: pageextension
    id: 6163
    name: E-Doc. Customer Card
    app: EDocument
    status: modified
objects_unjoined:
  - path: src/Apps/W1/EDocument/App/src/Extensions/EDocumentCustomer.TableExt.al
    status: added
    reason: not-in-snapshot
obsoletions: []
backports:
  - number: 13574
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13574
fixes_issues: []
work_items:
  - 652557
systems:
  - integration
quote: writes the customer's Registration No. as the buyer legal registration (BT-47) in PEPPOL BIS, XRechnung and ZUGFeRD
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12691 Support customer registration number as e-document party identifier for DE

> German customers can now use their registration number as the buyer identifier on outgoing e-invoices when no VAT ID or GLN is available.

[Pull request](https://github.com/microsoft/BCApps/pull/12691) · merged into `main` (BC30) on 2026-10-29 by Explorer986 · 9 files (+206 -11), 6 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds a toggle on the customer record to enable registration number use in e-documents
- Registration number is written as buyer legal registration in PEPPOL BIS, XRechnung and ZUGFeRD formats
- Extends existing functionality already available for company and vendor e-documents
- Only applies when the flag is enabled and VAT ID/GLN are unavailable
- Includes new test cases for all three e-document formats
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 13916 "Export XRechnung Document"](../../objects/codeunit/13916-de.md), EDocumentDE (DE layer): modified
- [Codeunit 13917 "Export ZUGFeRD Document"](../../objects/codeunit/13917-de.md), EDocumentDE (DE layer): modified
- [Codeunit 37403 "PEPPOL30 DE Party Info"](../../objects/codeunit/37403-de.md), PEPPOLDE (DE layer): modified
- [Codeunit 37400 "PEPPOL30 DE Sales Validation"](../../objects/codeunit/37400-de.md), PEPPOLDE (DE layer): modified
- [Page extension 6163 "E-Doc. Customer Card"](../../objects/pageextension/6163.md), EDocument: modified
- `src/Apps/W1/EDocument/App/src/Extensions/EDocumentCustomer.TableExt.al`: added, not in the BC30 snapshot yet

## Also merged into

- [#13574](https://github.com/microsoft/BCApps/pull/13574) into `releases/29.x` on 2026-11-09

## Context

- Work items: AB#652557
- Labels: AL: Apps (W1), Ownership: Needs Review, Team: Other
- Systems: integration
- From the description: "writes the customer's Registration No. as the buyer legal registration (BT-47) in PEPPOL BIS, XRechnung and ZUGFeRD"

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Electronic invoicing in Germany](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Germany/germany-einvoicing) — possibly related: Documents electronic invoicing in Germany with XRechnung and PEPPOL formats. (model-linked)

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