---
id: change/bcapps/12542
type: change
title: "#12542 [Main]Incorrect Calculation of Remaining Prod. Order Comp."
summary: Incorrect calculation of remaining production order component quantities is corrected in the reservation entry logic.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create reserv. entry
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:27.342Z"
  flags: []
generated:
  at: "2026-10-24T01:02:25.817Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8c6c5b86a8c179b57bcf42959b25c31bae6c709d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12542
    title: "microsoft/BCApps#12542: [Main]Incorrect Calculation of Remaining Prod. Order Comp."
    date: "2026-10-12"
    commit: 8c6c5b86a8c179b57bcf42959b25c31bae6c709d
    t: null
    quote: Incorrect Calculation of Remaining Prod. Order Comp.
links:
  learn: []
  objects:
    - object/codeunit/99000830
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/reports/report-99000767
      title: Prod. Order - Calculation (report)
      label: possibly related
      why: Documents production order calculations including component costing for manufacturing orders.
      by: model
number: 12542
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12542
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-12T13:46:01Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 142
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/99000830
    page: codeunit/99000830
    type: codeunit
    id: 99000830
    name: Create Reserv. Entry
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12784
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12784
fixes_issues: []
work_items:
  - 653427
systems:
  - inventory
quote: Incorrect Calculation of Remaining Prod. Order Comp.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12542 [Main]Incorrect Calculation of Remaining Prod. Order Comp.

> Incorrect calculation of remaining production order component quantities is corrected in the reservation entry logic.

[Pull request](https://github.com/microsoft/BCApps/pull/12542) · merged into `main` (BC30) on 2026-10-12 by Shikhverma · 2 files (+142 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixes wrong calculation of remaining production order component quantities
- Small change in the Create Reserv. Entry codeunit
- Adds an item tracking test for the scenario
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 99000830 "Create Reserv. Entry"](../../objects/codeunit/99000830.md), Base Application: modified

## Also merged into

- [#12784](https://github.com/microsoft/BCApps/pull/12784) into `releases/29.x` on 2026-10-22

## Context

- Work items: AB#653427
- Labels: Team: SCM
- Systems: inventory
- From the description: "Incorrect Calculation of Remaining Prod. Order Comp."

## Possibly related

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

- [Prod. Order - Calculation (report)](https://learn.microsoft.com/dynamics365/business-central/reports/report-99000767) — possibly related: Documents production order calculations including component costing for manufacturing orders. (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).
