code change · fixPurchasing & Payablesofficial - Microsoftreviewed - checked by Opus

#10176 [Main][all-e]Prepayment Invoice and Quantity Change Issue in Business Central

Fixes an issue with prepayment invoices when the quantity is changed on purchase or sales lines. Purchase Line and Sales Line tables were updated in many localization layers, and tests were added.

Pull request · merged into main (BC30) on 2026-08-21 by Shikhverma · 28 files (+152 -26), 26 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixes prepayment invoice handling when line quantities change
  • Purchase Line updated in APAC, BE, CH, DACH, ES, FI, GB, IT, NA, NL, NO, RU, SE and W1
  • Sales Line updated in the same layers except DACH and NL
  • Prepayment tests added in the W1 and RU layers
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#646718
  • Labels: Team: SCM
  • Systems: purchasing, sales

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

  • Invoice prepayments — possibly related: Documents invoicing prepayments and how prepayment amounts are processed on sales orders. (model-linked)
  • Set up and invoicing sales prepayments — possibly related: Covers setup and invoicing of sales prepayments including prepayment invoice creation and processing. (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).