#13396 [main] Purchase invoice fails with "quantity larger than item ledger entry" after partial invoicing of multiple receipts with non-base UoM and Qty. Rounding Precision = 1
Fixes a posting issue where partial purchase invoices with non-base units of measure and quantity rounding could fail when multiple receipts were involved, by ensuring remaining receipt quantities are correctly applied for equal quantities.
- 15files
- 10AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-03 by Shikhverma · 15 files (+520 -50), 10 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Changed quantity comparison from greater-than to greater-than-or-equal to properly handle remaining receipt base quantities
- Fixes posting failures that occurred after partial invoicing of multiple receipts with specific rounding precision settings
- Added regression test coverage across applicable localization layers to prevent recurrence
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 90 “Purch.-Post”, Base Application: modified
Also merged into
- #13498 into
releases/29.xon 2026-11-23
Context
- Work items: AB#657027
- Labels: Team: SCM
- Systems: purchasing
- From the description: “Use a greater-than-or-equal comparison so posted receipt base quantities are used for equal quantities as well.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Record purchases with purchase invoices — possibly related: Documents purchase invoice posting including handling multiple receipts and partial invoicing (model-linked)
- Set up item units of measure — possibly related: Documents units of measure setup including quantity rounding precision for purchase transactions (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).