#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.
- 3files
- 1AL files
- 1objects
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
- Codeunit 20411 “Qlty. Receiving Integration”, Quality Management: modified
Context
- Fixes: #9979 [Bug]: [Quality Management] Tracking specification buffer defects in HandleOnAfterPurchRcptLineInsert (closed)
- Work items: AB#659622
- Labels: ADO: Sync, AL: Apps (W1), Approved, From Fork, Team: SCM
- Systems: inventory
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Design details - Active versus historic item tracking entries — possibly related: Documents item tracking entries in purchase receipts and how tracking records flow through receiving. (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).