---
id: change/bcapps/14080
type: change
title: "#14080 [master] Reversed output entry stays uninvoiced (Invoiced Quantity = 0) after reopening a finished production order, causing quantity discrepancy in Inventory Valuation"
summary: Fixed an issue where reversed output entries in production orders remained uninvoiced after reopening, causing inventory valuation discrepancies.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit calc. inventory adjmt. - order
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-11-21T00:56:52.498Z"
  flags: []
generated:
  at: "2026-11-30T13:33:07.232Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: c55ac60d624ec86dca50ccfe4fd356247102df52
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14080
    title: "microsoft/BCApps#14080: [master] Reversed output entry stays uninvoiced (Invoiced Quantity = 0) after reopening a finished production order, causing quantity discrepancy in Inventory Valuation"
    date: "2026-11-20"
    commit: c55ac60d624ec86dca50ccfe4fd356247102df52
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/5896
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/production-cancel-production-orders-that-have-consumption
      title: Reverse and correct production order transactions
      label: possibly related
      why: Documents reversing production order transactions and reopening finished orders to fix quantity discrepancies.
      by: model
number: 14080
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14080
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-20T15:45:39Z"
author: neeleshsinghal
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 76
  deletions: 1
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5896
    page: codeunit/5896
    type: codeunit
    id: 5896
    name: Calc. Inventory Adjmt. - Order
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659323
systems:
  - inventory
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14080 [master] Reversed output entry stays uninvoiced (Invoiced Quantity = 0) after reopening a finished production order, causing quantity discrepancy in Inventory Valuation

> Fixed an issue where reversed output entries in production orders remained uninvoiced after reopening, causing inventory valuation discrepancies.

[Pull request](https://github.com/microsoft/BCApps/pull/14080) · merged into `main` (BC30) on 2026-11-20 by neeleshsinghal · 2 files (+76 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Reversed output entries now correctly track invoiced quantity when production orders are reopened
- Prevents inventory valuation discrepancies caused by uninvoiced reversed entries
- Fix applied to inventory adjustment calculation logic for production orders
- Includes test coverage for the production order reopening scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5896 "Calc. Inventory Adjmt. - Order"](../../objects/codeunit/5896.md), Base Application: modified

## Context

- Work items: AB#659323
- Labels: Team: SCM
- Systems: inventory

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Reverse and correct production order transactions](https://learn.microsoft.com/dynamics365/business-central/production-cancel-production-orders-that-have-consumption) — possibly related: Documents reversing production order transactions and reopening finished orders to fix quantity discrepancies. (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).
