#10608 [master]-Bug 647093-[Subscription Billing] Incorrect Invoice Amounts when using explicit values in Subscription Line End Date
Subscription billing now calculates correct invoice amounts and billing periods when using explicit end dates with daily or weekly billing rhythms and month-end alignment, by skipping month-end alignment for fixed-length day and week formulas.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-27 by MSNehaNawal · 2 files (+169 -7), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Fixed incorrect billing period boundaries and amounts for non-usage-based subscription lines with daily/weekly rhythms and month-end alignment
- Root cause was CalculateNextToDate() incorrectly applying month-end alignment to fixed-length day/week formulas
- Solution skips end-of-month alignment for day and week formulas while preserving it for month/quarter/year rhythms
- Correction applied at the source in CalculateNextToDate() eliminates billing boundary and proration errors
- Added test coverage for period calculation scenarios
- Behaviour changes for users or extensions.
AL objects touched
- Table 8059 “Subscription Line”, Subscription Billing: modified
Context
- Work items: AB#647093
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: “Incorrect Invoice Amounts when using explicit values in Subscription Line End Date”
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).