code change · fixAL Developmentofficial - Microsoftreviewed - checked by Opus

#8115 Subscription Billing: respect Default Dimension Priorities on Subscription Lines

Subscription Billing now respects Default Dimension Priorities when creating subscription lines from contracts, ensuring Item dimensions override Customer dimensions when configured with higher priority, instead of always letting Customer values win.

Pull request · merged into main (BC30) on 2026-07-14 by Franco111000 (community contribution) · 7 files (+229 -22), 6 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • SetDefaultDimensions now passes the correct source code (Sales/Purchases) to enable Default Dimension Priority lookup
  • Customer/Vendor is added as a dimension source alongside Item/GL Account for proper priority evaluation
  • GetRecDefaultDimID is used with inherited dimension set from contracts, matching the standard SalesLine.CreateDim pattern
  • UpdateFromCustomerContract/VendorContract now route through SetDefaultDimensions instead of blind-merging
  • Billing-time merge behavior remains unchanged to preserve subscription line dimension authority
  • Behaviour changes for users or extensions.

AL objects touched

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