code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#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 · 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

Also merged into

  • #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.”

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

  • Understand 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).