#12857 [master]Incorrect Purchase Credit Memo created when Customer and Vendor Subscription Contracts have the same Contract Number.
Billing totals now filter by both Subscription Contract No. and Partner type to prevent incorrect credit memos when customer and vendor contracts share the same number.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-10-15 by neeleshsinghal · 3 files (+164 -25), 2 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added Partner filtering in GetServiceAmountForContract and GetServiceAmount methods
- Prevents customer credit memo lines from affecting vendor contract billing totals
- Fixes issue where shared contract numbers caused wrong document type (credit memo instead of invoice)
- Changes affect billing line calculations and codeunit logic
- Comprehensive test coverage added for the correction scenario
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8062 “Billing Proposal”, Subscription Billing: modified
- Table 8061 “Billing Line”, Subscription Billing: modified
Context
- Work items: AB#654305
- Labels: AL: Apps (W1), Team: Finance
- Systems: sales
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Credit memos and cancellation — possibly related: Describes credit memo creation for subscription billing, core to the incorrect credit memo issue being fixed. (model-linked)
- Vendor contract integration in purchase invoices — possibly related: Documents vendor contract integration in purchase invoices and billing lines, directly relevant to the subscription contract bug fix. (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).