code change · fixSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#12967 [29.x]Incorrect Purchase Credit Memo created when Customer and Vendor Subscription Contracts have the same Contract Number.

Fixed incorrect purchase credit memo creation when customer and vendor subscription contracts share the same contract number by filtering billing totals by partner in addition to contract number.

Pull request · merged into releases/29.x (BC29) on 2026-10-21 by neeleshsinghal · 3 files (+164 -25), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Billing total calculations now filter by both subscription contract number and partner
  • Prevents customer contract credit memo lines from affecting vendor contract invoice type
  • Addresses issue where shared contract numbers caused wrong document type generation
  • Changes made in BillingLine and BillingProposal objects
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#654959
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: sales
  • From the description: “The billing total that decides between an invoice and a credit memo filtered only by Subscription Contract No.”

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: Explains credit memo creation for subscription billing contracts, 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, relevant to the subscription contract credit memo bug. (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).