code change · fixInventoryofficial - Microsoftreviewed - checked by Opus

#12291 [Quality Management] Pass the single tracking record and clear the right filter in the purchase receipt subscriber

Fixes two defects in the Quality Management purchase receipt subscriber. Filter cleanup now clears Quantity Handled (Base), so later posting event subscribers no longer get a filtered buffer. Inspection creation on the tracked path now receives the single-record buffer instead of the full posting buffer.

Pull request · merged into main (BC30) on 2026-11-17 by Franco111000 (community contribution) · 3 files (+192 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Filter cleanup clears Quantity Handled (Base) instead of Qty. to Invoice (Base)
  • Later posting events such as OnBeforeInsertTrackingSpecification no longer see a leftover filter on the tracking buffer
  • On the tracked path, subscribers of the OnBefore/OnAfterPurchaseAttemptCreateInspectionWithPurchaseLine events now see only the tracking record being inspected
  • The inspections created and the posted data are unchanged
  • Adds two tests and a manually bound test subscriber codeunit
  • Behaviour changes for users or extensions.

AL objects touched

Context

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