---
id: change/bcapps/8874
type: change
title: "#8874 [Field Service Integration] Rounding error on Service Line quantity write-back for Item-type service lines with non-divisible durations"
summary: Service line quantities synced from Field Service are now properly rounded before validation to prevent precision errors on non-divisible durations.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit fs int. table subscriber
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-17T01:12:12.701Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 416472ab13c3e14f10c35c216991106bb9c97df8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/8874
    title: "microsoft/BCApps#8874: [Field Service Integration] Rounding error on Service Line quantity write-back for Item-type service lines with non-divisible durations"
    date: "2026-10-09"
    commit: 416472ab13c3e14f10c35c216991106bb9c97df8
    t: null
    quote: Wrap every /60 result with UOMMgt.RoundQty(value, ServiceLine."Qty. Rounding Precision") before passing to Validate.
links:
  learn: []
  objects:
    - object/codeunit/6610
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/inventory-about-item-types
      title: Understand item types
      label: possibly related
      why: Fixes quantity rounding for Item-type service lines in Field Service integration scenarios.
      by: model
number: 8874
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/8874
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-09T15:19:39Z"
author: tomasevicst
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 109
  deletions: 5
  al: 1
apps:
  - FieldServiceIntegration
objects_touched:
  - key: codeunit/6610
    page: codeunit/6610
    type: codeunit
    id: 6610
    name: FS Int. Table Subscriber
    app: FieldServiceIntegration
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12600
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12600
fixes_issues: []
work_items:
  - 640688
systems:
  - integration
quote: Wrap every /60 result with UOMMgt.RoundQty(value, ServiceLine."Qty. Rounding Precision") before passing to Validate.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #8874 [Field Service Integration] Rounding error on Service Line quantity write-back for Item-type service lines with non-divisible durations

> Service line quantities synced from Field Service are now properly rounded before validation to prevent precision errors on non-divisible durations.

[Pull request](https://github.com/microsoft/BCApps/pull/8874) · merged into `main` (BC30) on 2026-10-09 by tomasevicst · 2 files (+109 -5), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Wraps duration-to-hours division with UOMMgt.RoundQty before passing to Quantity validation
- Handles both defined and undefined item UoM rounding precision cases
- Covers five quantity-conversion sites in estimated and actual paths
- Falls back to 0.00001 precision when item precision is not configured
- Prevents validation errors on fractional hour quantities like 0.333... from 20-minute durations
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6610 "FS Int. Table Subscriber"](../../objects/codeunit/6610.md), FieldServiceIntegration: modified

## Also merged into

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

## Context

- Work items: AB#640688
- Labels: AL: Apps (W1), Team: SCM
- Systems: integration
- From the description: "Wrap every /60 result with UOMMgt.RoundQty(value, ServiceLine."Qty. Rounding Precision") before passing to Validate."

## Possibly related

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

- [Understand item types](https://learn.microsoft.com/dynamics365/business-central/inventory-about-item-types) — possibly related: Fixes quantity rounding for Item-type service lines in Field Service integration scenarios. (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).
