#10444 [Bug][Subscription Billing] "Cancellation Possible Until" is rounded to the end of the month when the Notice Period is expressed in days
Fixed an issue where subscription line cancellation dates were incorrectly rounded to month-end when notice periods were expressed in days or weeks, potentially allowing cancellations outside agreed notice windows. Added logic to only apply month-end alignment for month-based formulas.
- 4files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-10-23 by miljance (community contribution) · 4 files (+284 -7), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Subscription cancellation dates no longer snap to month-end for day or week-based notice periods
- Added DateFormulaManagement.IsMonthBasedDateFormula() to distinguish month-based from day/week-based formulas
- Applied fix to three calculation methods: CalculateCancellationPossibleUntil, CalculateTermUntilFromCancellationPossibleUntil, and CalculateTermUntilUsingExtensionTerm
- Composite formulas like <1Y+6M> are correctly identified as month-based, while formulas with day or week components are not
- Added 10 test methods covering day, week, month, quarter, and composite formulas
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8057 “Date Formula Management”, Subscription Billing: modified
- Table 8059 “Subscription Line”, Subscription Billing: modified
Context
- Fixes: #10354 [Bug][Subscription Billing] “Cancellation Possible Until” is rounded to the end of the month when the Notice Period is expressed in days (closed)
- Work items: AB#653333
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: sales
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Power BI Subscription Billing app semantic model — possibly related: touches Table 8059 “Subscription Line”
- Cancel planned subscription lines — possibly related: Documents cancellation dates and notice periods for subscription contract lines, directly related to the bug fix. (model-linked)
- Period calculation — possibly related: Documents period calculation for subscription billing, relevant to date rounding logic in the fix. (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).