#14638 [29.x]-Adjust Cost Creates an Output Value Entry with Entry Type = Variance and Expected Cost = Yes After Reversing a Finished Production Order.
Fixed a bug where Adjust Cost incorrectly created variance value entries with Expected Cost set to Yes instead of No for reopened and reversed production orders, which caused G/L posting failures.
- 4files
- 3AL files
- 1objects
Pull request · merged into releases/29.x (BC29) on 2026-11-30 by DhavalMore88 (community contribution) · 4 files (+202 -3), 3 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Variance and Indirect Cost entries now use Valued Quantity instead of Invoiced Quantity when posting cost adjustments
- New GetActualCostAdjmtInvoicedQty procedure ensures these entries are posted as actual cost with Expected Cost = No
- Prevents imbalanced expected cost amounts and Post Inventory Cost to G/L failures
- Applied consistently across W1, APAC, and RU layers
- Fixes a specific scenario where reopening, reversing, and re-posting production orders caused the issue
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 5895 “Inventory Adjustment”, Base Application: modified
src/Layers/APAC/BaseApp/Inventory/Costing/InventoryAdjustment.Codeunit.al: modified, not in the BC29 snapshot
Context
- Work items: AB#652998
- Labels: ADO: Sync, From Fork, Team: SCM
- Systems: inventory
- From the description: “For Variance and Indirect Cost entries with no invoiced quantity, it returns the original entry’s Valued Quantity.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- About finished production order costs — possibly related: Explains cost adjustment on finished production orders and variance entries creation. (model-linked)
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).