---
id: change/bcapps/12161
type: change
title: "#12161 [MAIN]-FIX-Bug 652365"
summary: Fixed production order refresh failing when a component base quantity is smaller than its rounding precision by preserving the unrounded value in this specific case.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table prod. order component
system: manufacturing
review:
  state: reviewed
  by: opus
  at: "2026-11-04T00:58:50.679Z"
  flags: []
generated:
  at: "2026-11-24T00:13:35.655Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 3f98a8558718eef2945554373dc1b7ebe5fcc0a5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12161
    title: "microsoft/BCApps#12161: [MAIN]-FIX-Bug 652365"
    date: "2026-11-03"
    commit: 3f98a8558718eef2945554373dc1b7ebe5fcc0a5
    t: null
    quote: Refreshing a production order fails when a valid component base quantity is smaller than its rounding precision.
links:
  learn: []
  objects:
    - object/table/5407
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/reports/report-99000762
      title: Prod. Order - Job Card (report)
      label: possibly related
      why: Production order components and routing lines needed, related to Prod. Order Component table.
      by: model
number: 12161
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12161
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-03T06:23:36Z"
author: v-praghav
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 115
  deletions: 0
  al: 2
apps:
  - Base Application
objects_touched:
  - key: table/5407
    page: table/5407
    type: table
    id: 5407
    name: Prod. Order Component
    app: Base Application
    status: modified
objects_unjoined:
  - path: src/Layers/IT/BaseApp/Manufacturing/Document/ProdOrderComponent.Table.al
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 652365
systems:
  - manufacturing
quote: Refreshing a production order fails when a valid component base quantity is smaller than its rounding precision.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #12161 [MAIN]-FIX-Bug 652365

> Fixed production order refresh failing when a component base quantity is smaller than its rounding precision by preserving the unrounded value in this specific case.

[Pull request](https://github.com/microsoft/BCApps/pull/12161) · merged into `main` (BC30) on 2026-11-03 by v-praghav · 3 files (+115 -0), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Refreshing production orders now handles components with base quantities smaller than rounding precision
- Solution preserves unrounded values when premature rounding would reduce a nonzero quantity to zero
- Standard rounding behavior is maintained in other scenarios
- Test coverage added for the new behavior
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 5407 "Prod. Order Component"](../../objects/table/5407.md), Base Application: modified
- `src/Layers/IT/BaseApp/Manufacturing/Document/ProdOrderComponent.Table.al`: modified, not in the BC30 snapshot

## Context

- Work items: AB#652365
- Labels: Team: SCM
- Systems: manufacturing
- From the description: "Refreshing a production order fails when a valid component base quantity is smaller than its rounding precision."

## Possibly related

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

- [Prod. Order - Job Card (report)](https://learn.microsoft.com/dynamics365/business-central/reports/report-99000762) — possibly related: Production order components and routing lines needed, related to Prod. Order Component table. (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).
