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

#11114 [Master][ALL-E] Document Type is Quote in Document Attachment table (1173) after posting a Sales Invoice with attachments.

Document Type is now correctly set to Invoice or Credit Memo when attachments are transferred to posted sales documents, fixing an issue where the type was incorrectly defaulting to Quote.

Pull request · merged into main (BC30) on 2026-09-16 by sanjmaurya · 4 files (+408 -2), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Document attachments transferred to posted invoices now have Document Type set to Invoice instead of Quote
  • Document attachments transferred to posted credit memos now have Document Type set to Credit Memo
  • The fix applies to both header and line attachments
  • Both sales and service document attachment management were updated
  • Regression tests added to verify correct behavior
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#649254
  • Labels: Ownership: Needs Review, Team: Other
  • Systems: platform, service
  • From the description: “Set the Document Type according to the posted document table instead of clearing it.”

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