Skip to content

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

Open
miljance wants to merge 1 commit intomicrosoft:mainfrom
miljance:ZUGFeRDSellerItemNumber
Open

[Bug]: ZUGFeRD Invoice: Seller Item Number (BT-155) not included in XML export#29931
miljance wants to merge 1 commit intomicrosoft: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

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
@miljance miljance requested a review from a team as a code owner April 10, 2026 20:15
@miljance miljance requested a review from SBalslev April 10, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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

1 participant