code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#10347 [Bug][Subscription Billing] Wrong number of days on vendor contract deferrals when the billing period lies within a single calendar month

Vendor subscription contract deferrals now calculate the correct number of days when a billing period falls entirely within a single calendar month, fixing day counts that previously extended to the month's end.

Pull request · merged into main (BC30) on 2026-10-03 by miljance (community contribution) · 2 files (+255 -6), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Single-period billing schedules now use the actual billing period date range instead of calendar month days
  • Added dedicated logic branch for one-period schedules matching customer deferral handling
  • Multi-period schedules remain unaffected with correct partial and full month day counts
  • Eight new test cases cover single and multi-period scenarios with various date ranges
  • Deferral amounts were already correct; only day count field was wrong
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #12286 into releases/29.x on 2026-10-06

Context

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