code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#13428 [Quality Management] Keep Sample Size and Pass/Fail Quantity within Quantity (Base)

Quality Management inspections now enforce that Sample Size and Pass/Fail Quantity cannot exceed Quantity (Base), preventing data inconsistencies when Quantity (Base) is reduced after inspection creation or when it is zero.

Pull request · merged into main (BC30) on 2026-11-06 by alexei-dobriansky · 4 files (+106 -6), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Sample Size and template Sample Fixed Amount now have MinValue = 0; a negative fixed amount already on a template is treated as 0 so posting is not blocked
  • Validating Quantity (Base) re-caps a Sample Size that exceeds it
  • On Finish the applied quantity is Sample Size if above 0, otherwise Quantity (Base), always capped at Quantity (Base), with no silent early exit
  • Inspections with Quantity (Base) = 0 now finish with Pass/Fail 0 instead of the sample size
  • Pass/Fail Quantity tooltips state the cap; existing negative Sample Size values are not migrated
  • Behaviour changes for users or extensions.

AL objects touched

Also merged into

  • #13797 into releases/29.x on 2026-11-12

Context

  • Work items: AB#655845, AB#655846
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: inventory

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

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