#10020 [Master] - Bug 641894: [Expense Agent] [Rules] Mileage expense should not validate require receipt number rule
Mileage expenses in Expense Agent no longer incorrectly trigger the receipt number mandatory validation rule, since mileage never has receipts.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-08-14 by v-rohangarg20 · 3 files (+221 -0), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Mileage expenses are now excluded from the require receipt number validation
- The fix applies to both initial expense and expense report line validation
- Validation logic now checks expense type before applying the rule
- Tests added to verify mileage expenses bypass receipt number checks
- Non-mileage expenses continue to enforce receipt number requirements when enabled
- Behaviour changes for users or extensions.
AL objects touched
- Page 6901 “Expense Rule Card”, ExpenseAgent: modified
- Table 6927 “Expense Rule Header”, ExpenseAgent: modified
Context
- Work items: AB#641894
- Labels: AL: Apps (W1), ExpenseManagement, Team: Integrations
- Systems: development
- From the description: “Mileage expense should not validate require receipt number rule”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Set Up Expense Categories, Rules, and Policies — possibly related: touches Page 6901 “Expense Rule Card”
- Upload Receipts and Create Mileage Expenses — possibly related: Documents Expense Agent mileage expense creation and receipt handling. (model-linked)
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).