Skip to content

Correct document for embedded PDF#29667

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

Correct document for embedded PDF#29667
miljance wants to merge 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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)

2 participants