#11399 [master][Subscription Billing] 1M 'Align to End of Month' line with end date produces a 1-day prorated stub
Fixed a bug in Subscription Billing where monthly billing with Align to End of Month created an unwanted one-day prorated line when the subscription ended. The period end date calculation now properly includes the subscription line end date.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-09-18 by neeleshsinghal · 2 files (+48 -1), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Monthly billing cycles with Align to End of Month no longer create spurious one-day prorated billing lines at the subscription end date
- CalculateNextToDate now caps the calculated period end date at the subscription line end date when applicable
- End-date handling improved to include the subscription line end date in the current billing period
- Fixes vendor contracts that were incorrectly generating extra billing lines
- Behaviour changes for users or extensions.
AL objects touched
- Table 8059 “Subscription Line”, Subscription Billing: modified
Context
- Work items: AB#650068
- Labels: AL: Apps (W1), Team: Finance
- Systems: development
- From the description: “The billing period ended one day before the Subscription Line End Date, creating an unintended one-day prorated billing line.”
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).