#10094 [Main]- Standard-cost purchase receipts use Direct Unit Cost instead of Standard Cost when cumulative expected-cost rounding is enabled
Standard-cost items now correctly use Standard Cost instead of Direct Unit Cost when calculating expected cost on purchase receipts with cumulative rounding enabled, preventing inventory overstatement and ensuring purchase variance is properly recognized on invoicing.
- 7files
- 6AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-11 by DhavalMore88 (community contribution) · 7 files (+98 -0), 6 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added early exit in ShouldUseCumulativeRoundingForExpectedCost for Standard costing method items
- Prevents Direct Unit Cost from being incorrectly capitalized into inventory for standard-cost purchases
- Preserves cumulative rounding behavior for FIFO, Average, LIFO, and Specific costing methods
- Purchase price differences now correctly post to Purchase Variance on invoicing
- Regression test added to verify standard-cost expected cost calculation
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 22 “Item Jnl.-Post Line”, Base Application: modified
src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#646424
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: “Standard-cost items fall back to the Unit Cost * Quantity basis and post expected cost at Standard Cost”
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).