code change · fixCopilot & Agentsofficial - Microsoftreviewed - checked by Opus

#14241 [Expense Agent] Fix corporate card data integrity

Five corporate card data integrity issues are fixed: settlement membership serialization, configured card preservation, mapped import failure handling, feed-linked expense deletion checks, and LCY amount rounding to configured precision.

Pull request · merged into main (BC30) on 2026-11-27 by Alexander-Ya · 12 files (+849 -54), 7 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Settlement membership changes are serialized on shared statement rows with exclusive ownership rechecked before posting
  • Configured CSV/XML card and employee mappings are preserved when applying defaults instead of blanket deletion
  • Mapped imports fail when all rows are rejected, preserving diagnostics while skipping acknowledgement
  • Deletion of feed-linked expenses is rejected before related data is deleted to prevent stranded transactions
  • Converted and cached historical LCY amounts are rounded to configured precision before storage
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#630366
  • Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
  • Systems: copilot
  • From the description: “Address five corporate-card data-integrity issues”

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