#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.
- 12files
- 7AL files
- 7objects
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
- Codeunit 7434 “EA Corp Card Data Exch Prov”, ExpenseAgent: modified
- Codeunit 7443 “EA Corp Card Settlement Mgt”, ExpenseAgent: modified
- Table 7430 “EA Corp Card Settlement”, ExpenseAgent: modified
- Table 7431 “EA Corp Card Settlement Line”, ExpenseAgent: modified
- Table 7428 “EA Corp Card Trans”, ExpenseAgent: modified
- Table 6900 “Expense”, ExpenseAgent: modified
- Codeunit 7442 “EA Create Corp Card Setup”, ExpenseAgent: modified
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).