code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#10575 Calculate Inventory: scope Default Dimension reads by source table

Report 790 Calculate Inventory now scopes Default Dimension reads by source table to prevent dimensions from unrelated locations bleeding into journal lines when item numbers and location codes collide.

Pull request · merged into main (BC30) on 2026-10-15 by Franco111000 (community contribution) · 3 files (+92 -14), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixed cross-product filter issue where independent OR-filters on No. and Table ID caused incorrect dimension assignments
  • Changed to two scoped passes per table-number pair: one for items and one for locations
  • Added regression test verifying that unrelated location dimensions do not leak when codes match
  • Applied same fix to both W1 and RU layer copies of the report
  • Behavior unchanged when item numbers and location codes do not collide
  • Behaviour changes for users or extensions.

AL objects touched

  • Report 790 “Calculate Inventory”, Base Application: modified
  • src/Layers/RU/BaseApp/Inventory/Counting/Journal/CalculateInventory.Report.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#654041
  • Labels: ADO: Sync, From Fork, Team: SCM
  • Systems: inventory

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