#9293 [Bug][SubscriptionBilling] Process Usage Data Billing uses lines marked Processing Status = Error (currency mismatch)
Process Usage Data Billing now excludes lines marked with Processing Status Error, preventing recalculation of erroneous data and consolidating filtering logic into a single helper method. Processing Status is now properly maintained throughout the billing workflow and users can manually close or reopen usage data imports.
- 9files
- 8AL files
- 8objects
Pull request · merged into main (BC30) on 2026-09-25 by miljance (community contribution) · 9 files (+374 -61), 8 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Lines with Processing Status Error are now excluded from sums and lookups in the billing process
- Three duplicate CalcSums procedures consolidated into one CalculateSumsFromUsageDataBilling method
- Processing Status transitions now route through Validate to consistently stamp Processing Date
- Manual Close/Reopen actions added to Usage Data Imports page with multi-select support
- Six new tests added covering the corrected behavior
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8023 “Create Usage Data Billing”, Subscription Billing: modified
- Codeunit 8033 “Generic Connector Processing”, Subscription Billing: modified
- Codeunit 8025 “Import And Process Usage Data”, Subscription Billing: modified
- Codeunit 8026 “Process Usage Data Billing”, Subscription Billing: modified
- Page 8035 “Usage Data Billings”, Subscription Billing: modified
- Page 8041 “Usage Data Imports”, Subscription Billing: modified
- Table 8006 “Usage Data Billing”, Subscription Billing: modified
- Table 8013 “Usage Data Import”, Subscription Billing: modified
Context
- Fixes: #9285 [Bug][SubscriptionBilling] Process Usage Data Billing uses lines marked Processing Status = Error (currency mismatch) (closed)
- Work items: AB#649267
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development
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).