code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#11679 [29.x][Subscription Billing] 1M 'Align to End of Month' line with end date produces a 1-day prorated stub

Fixed a billing period calculation issue in Subscription Billing where monthly billing with 'Align to End of Month' would create an unintended one-day prorated stub when the subscription line ended within the period.

Pull request · merged into releases/29.x (BC29) on 2026-09-22 by neeleshsinghal · 2 files (+64 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • CalculateNextToDate now correctly caps the period end date at the Subscription Line End Date
  • Prevents one-day prorated billing lines when the end date falls within a monthly period
  • Affects vendor contracts using 1M billing rhythm with month-end alignment
  • Adds test coverage for the corrected behavior
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#650581
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: development
  • From the description: “Updated CalculateNextToDate to cap the calculated period end date at the Subscription Line End Date when it falls within the current monthly period.”

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