#13063 [Bug][Subscription Billing] Rebilling usage data increases the subscription quantity once per subscription line
Fixed rebilling of usage data for subscription lines so that subscription quantity increases only once instead of once per subscription line when a subscription has both customer and vendor lines with usage-based pricing.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-04 by miljance (community contribution) · 2 files (+51 -3), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Rebilled usage quantity was incorrectly applied multiple times per subscription due to repeated reads of the subscription header quantity
- Captures subscription quantity once per run in a dictionary before processing any lines, eliminating double-counting across customer and vendor lines
- Only affects rebilling scenarios with multiple usage-quantity subscription lines; non-rebilling usage data processing is unchanged
- Existing subscriptions and posted documents are not affected by the behavioral change
- Added test verifying correct single quantity increase when rebilling a subscription with both customer and vendor lines
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8026 “Process Usage Data Billing”, Subscription Billing: modified
Context
- Fixes: #12969 [Bug][Subscription Billing] Rebilling usage data increases the subscription quantity once per subscription line (closed)
- Work items: AB#657346
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: sales
- From the description: “the subscription quantity is now increased by the rebilled quantity once, not once per subscription line”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Rebilling usage data — possibly related: Documents rebilling usage data adjustments for subscription quantities already invoiced. (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).