code change · fixSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#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.

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

Context

No source states these links: they share an object, a model read them, or a person found the same subject.

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).