code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#9860 [Bug]: [DE] XRechnung/ZUGFeRD - Item Charge lines exported without a valid unit of measure code (BR-CL-23 / BR-23 on BT-130)

Item charge lines are now correctly exported as allowances or charges in XRechnung and ZUGFeRD documents instead of fabricated invoice lines, with configurable mapping strategies to comply with EN 16931 validation rules.

Pull request · merged into main (BC30) on 2026-09-05 by miljance (community contribution) · 21 files (+5873 -54), 14 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • New Item Charge E-Invoice Mapping setting on E-Document Service: Automatic, document-level or line-level allowance/charge, or line with unit code
  • Per-item-charge override for mapping, reason text, reason code and fallback unit code
  • Automatic mode uses Value Entry assignments to choose line-level or document-level, with integration events to override the result
  • XRechnung and ZUGFeRD exporters emit allowance/charge structures and adjust totals and tax subtotals accordingly
  • Removes a duplicate features key that stopped the DE demo data app from compiling
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #11099 into releases/29.x on 2026-09-14

Context

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