#10182 [Bug]: [Subscription Billing] Payment discount on contract invoices comes from the customer, not from the contract's payment terms
Payment discount percentages on subscription billing invoices now correctly use the contract's payment terms instead of the customer or vendor's payment terms.
- 2files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-10-05 by miljance (community contribution) · 2 files (+197 -1), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Invoices created from contracts now take Payment Discount % from the contract’s payment terms, not the customer’s or vendor’s
- Create Billing Documents re-validates the contract Payment Terms Code after the document date is set
- Sales and purchase headers are handled differently because their payment terms triggers behave differently
- Four new tests cover contract terms that grant a discount and contract terms that remove one, for both customers and vendors
- Before the fix, the payment discount could be missing or larger than the contract terms allow
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 8060 “Create Billing Documents”, Subscription Billing: modified
Context
- Fixes: #10095 [Bug]: [Subscription Billing] Payment discount on contract invoices comes from the customer, not from the contract’s payment terms (closed)
- Work items: AB#651548
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Customer subscription contracts — possibly related: Explains customer subscription contracts with billing information and contract structure. (model-linked)
- Set up payment terms — possibly related: Documents payment terms configuration that determines payment discounts on invoices. (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).