---
id: change/bcapps/14537
type: change
title: '#14537 [Main][all-e]Subscription Billing: posting or previewing a contract renewal Sales Order fails with "International Standard Code" error when e-invoicing (PEPPOL / XRechnung) is active in the German version. - Copy'
summary: Fixed a unit code resolution error in PEPPOL e-invoicing when posting subscription contract renewal sales orders with extension-defined line types.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit peppol30 impl.
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-12-02T01:05:54.515Z"
  flags: []
generated:
  at: "2026-12-05T00:13:03.967Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f7eddb18341068b99dafb74e5b136c1b25f1aa94
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14537
    title: 'microsoft/BCApps#14537: [Main][all-e]Subscription Billing: posting or previewing a contract renewal Sales Order fails with "International Standard Code" error when e-invoicing (PEPPOL / XRechnung) is active in the German version. - Copy'
    date: "2026-12-01"
    commit: f7eddb18341068b99dafb74e5b136c1b25f1aa94
    t: null
    quote: Updated the resolver to use the configured unit's International Standard Code for extension-defined sales line types.
links:
  learn: []
  objects:
    - object/codeunit/37201
  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 with e-document framework and XRechnung/PEPPOL formats
      by: model
number: 14537
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14537
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-01T03:58:46Z"
author: sanjmaurya
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Needs Review"
  - "Team: Other"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 141
  deletions: 1
  al: 1
apps:
  - PEPPOL
objects_touched:
  - key: codeunit/37201
    page: codeunit/37201
    type: codeunit
    id: 37201
    name: PEPPOL30 Impl.
    app: PEPPOL
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 660669
systems:
  - integration
quote: Updated the resolver to use the configured unit's International Standard Code for extension-defined sales line types.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14537 [Main][all-e]Subscription Billing: posting or previewing a contract renewal Sales Order fails with "International Standard Code" error when e-invoicing (PEPPOL / XRechnung) is active in the German version. - Copy

> Fixed a unit code resolution error in PEPPOL e-invoicing when posting subscription contract renewal sales orders with extension-defined line types.

[Pull request](https://github.com/microsoft/BCApps/pull/14537) · merged into `main` (BC30) on 2026-12-01 by sanjmaurya · 2 files (+141 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- PEPPOL's unit-code resolver now handles extension-defined subscription sales line types
- Returns the configured unit's International Standard Code instead of empty values
- Preserves existing behavior for comment lines and zero-quantity items
- Regression tests added to cover the scenario
- Affects German PEPPOL DE and XRechnung configurations
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 37201 "PEPPOL30 Impl."](../../objects/codeunit/37201.md), PEPPOL: modified

## Context

- Work items: AB#660669
- Labels: AL: Apps (W1), Ownership: Needs Review, Team: Other
- Systems: integration
- From the description: "Updated the resolver to use the configured unit's International Standard Code for extension-defined sales line types."

## 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 with e-document framework and XRechnung/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).
