#11342 [29.x][ALL-E] Document Type is Quote in Document Attachment table (1173) after posting a Sales Invoice with attachmentsIntial Commit
Document attachments transferred after posting a sales invoice or credit memo now correctly retain the posted document type instead of being incorrectly set to Quote.
- 4files
- 2AL files
- 2objects
Pull request · merged into releases/29.x (BC29) on 2026-09-29 by sanjmaurya · 4 files (+409 -2), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Attachment transfers during document posting were clearing the document type field, defaulting to Quote enum value 0
- Logic updated to explicitly set document type based on the posted document table
- Posted invoice attachments now have Invoice type, posted credit memos have Credit Memo type
- Regression tests added to verify correct document type assignment for both header and line attachments
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 1173 “Document Attachment Mgmt”, Base Application: modified
- Codeunit 6459 “Serv. Document Attachment Mgt.”, Base Application: modified
Context
- Work items: AB#649906
- Labels: Ownership: Manual, Team: SCM
- Systems: platform, service
- From the description: “Document Type was cleared. Because Quote is enum value 0, clearing the field implicitly assigned Quote.”
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).