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