#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.
- 2files
- 1AL files
- 1objects
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
- Codeunit 8068 “Vendor Deferrals Mngmt.”, Subscription Billing: modified
Also merged into
- #12286 into
releases/29.xon 2026-10-06
Context
- Fixes: #10097 [Bug][Subscription Billing] Wrong number of days on vendor contract deferrals when the billing period lies within a single calendar month (closed)
- Work items: AB#651553
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development
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).