Skip to content

[Bug]: ZUGFeRD Invoice: Seller Item Number (BT-155) not included in XML export#29931

Merged
JesperSchulz merged 1 commit into
microsoft:mainfrom
miljance:ZUGFeRDSellerItemNumber
May 11, 2026
Merged

[Bug]: ZUGFeRD Invoice: Seller Item Number (BT-155) not included in XML export#29931
JesperSchulz merged 1 commit into
microsoft:mainfrom
miljance:ZUGFeRDSellerItemNumber

Conversation

@miljance
Copy link
Copy Markdown
Contributor

@miljance miljance commented Apr 10, 2026

Summary

Fix ZUGFeRD export missing SellerAssignedID (BT-155) Populate ram:SellerAssignedID within ram:SpecifiedTradeProduct on each invoice/credit memo line when the line item No. is non-empty. This aligns the ZUGFeRD export with the existing XRechnung behaviour and satisfies the EN 16931 BT-155 recommendation.

Affected files:

  • ExportZUGFeRDDocument.Codeunit.al: add SellerAssignedID before Name in InsertInvoiceLine and InsertCrMemoLine
  • ZUGFeRDXMLDocumentTests.Codeunit.al: assert SellerAssignedID in all eight Verify*Line helpers (sales/service invoice and credit memo, first and second line)

Work Item(s)

Fixes #29871
AB#622278

Populate ram:SellerAssignedID within ram:SpecifiedTradeProduct on each
invoice/credit memo line when the line item No. is non-empty. This
aligns the ZUGFeRD export with the existing XRechnung behaviour and
satisfies the EN 16931 BT-155 recommendation.

Affected files:
- ExportZUGFeRDDocument.Codeunit.al: add SellerAssignedID before Name
  in InsertInvoiceLine and InsertCrMemoLine
- ZUGFeRDXMLDocumentTests.Codeunit.al: assert SellerAssignedID in all
  eight Verify*Line helpers (sales/service invoice and credit memo,
  first and second line)

Fixes microsoft#29871
@djukicmilica djukicmilica added the linked Issue is linked to a Azure Boards work item label Apr 23, 2026
@JesperSchulz JesperSchulz added the processing-PR The PR is currently being reviewed label Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Processing this PR. The branch is now locked 🔒 Please don't push updates unless otherwise agreed.

@JesperSchulz JesperSchulz merged commit 234988e into microsoft:main May 11, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Finance GitHub request for Finance area linked Issue is linked to a Azure Boards work item processing-PR The PR is currently being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ZUGFeRD Invoice: Seller Item Number (BT-155) not included in XML export

3 participants