code change · fixPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

#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.

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

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).