code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#9729 [MAIN]-The system throws the error while posting a receipt against a Subcontracting Order.

Fixed subcontracting receipt posting to correctly handle multiple item variants and component lines by improving inventory matching logic and resetting the remaining quantity after successful posting.

Pull request · merged into main (BC30) on 2026-08-17 by v-maheshsharma · 4 files (+67 -3), 4 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Remaining Quantity flowfield on Delivery Challan Line now separates variants and component lines
  • Apply Delivery Challan shows correct remaining quantities when an item has several variants
  • ILE application logic matches inventory by variant and component line
  • RemQtytoPost is reset after the final successful consumption, so the shortage error only fires for real shortages
  • Receipts posted against subcontracting orders no longer fail with a false shortage error
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#644092
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Remaining Quantity on Delivery Challan Line was aggregating inventory without enough granularity.”

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