Skip to content

Correct document for embedded PDF#29667

Merged
JesperSchulz merged 1 commit intomicrosoft:mainfrom
miljance:XRechnungEmbeddingPDF2
Feb 9, 2026
Merged

Correct document for embedded PDF#29667
JesperSchulz merged 1 commit intomicrosoft:mainfrom
miljance:XRechnungEmbeddingPDF2

Conversation

@miljance
Copy link
Contributor

@miljance miljance commented Feb 4, 2026

Summary

This pull request updates how SalesHeader is populated in the Export XRechnung Document codeunit. Instead of using the PEPPOLMgt.FindNextSalesInvoiceRec and PEPPOLMgt.FindNextSalesCreditMemoRec methods, it now uses TransferFields and explicitly sets the "Document Type" field. This change fixes the wrong document selection for both invoices and credit memos.

Work Item(s)

Fixes #29665
AB#620565

@miljance miljance requested a review from a team as a code owner February 4, 2026 08:45
@miljance miljance requested a review from IhorHandziuk February 4, 2026 08:45
@github-actions github-actions bot added the linked Issue is linked to a Azure Boards work item label Feb 4, 2026
@JesperSchulz JesperSchulz added the Finance GitHub request for Finance area label Feb 9, 2026
@JesperSchulz JesperSchulz merged commit 8786d37 into microsoft:main Feb 9, 2026
15 of 16 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: XRechnung: Embedded PDF attachment embeds wrong invoice (first posted sales invoice instead of current)

3 participants