#9863 [Extensibility Request] issue 29074: expose PurchLineQty in OnSumPurchLines2OnBeforeDivideAmount
The OnSumPurchLines2OnBeforeDivideAmount event now exposes the PurchLineQty parameter by reference, allowing subscribers to adjust the purchase line quantity before amount division calculations run.
- 10files
- 10AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-03 by AleksandricMarko · 10 files (+20 -20), 10 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Added a var PurchLineQty: Decimal parameter at the end of OnSumPurchLines2OnBeforeDivideAmount
- Subscribers can change the quantity used before DivideAmount runs in SumPurchLines2
- Applied to W1 and every country layer with its own Purch.-Post copy (APAC, BE, CH, ES, FI, GB, IT, NA, RU)
- Requested to support amount-only purchasing modes in partner solutions
- Breaking: existing extensions can stop compiling or working.
AL objects touched
- Codeunit 90 “Purch.-Post”, Base Application: modified
Context
- Work items: AB#597602
- Labels: Team: SCM, event-request
- Systems: purchasing
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).