Skip to content

[Bug][SubscriptionBilling]: Customer cannot be changed on contract with closed subscription lines#7028

Open
miljance wants to merge 1 commit intomicrosoft:mainfrom
miljance:SBAllowCustomerChange
Open

[Bug][SubscriptionBilling]: Customer cannot be changed on contract with closed subscription lines#7028
miljance wants to merge 1 commit intomicrosoft:mainfrom
miljance:SBAllowCustomerChange

Conversation

@miljance
Copy link
Contributor

@miljance miljance commented Mar 6, 2026

Summary

This pull request improves the handling of closed subscription lines in the service commitments logic and adds a new test to ensure correct behavior when changing the Sell-to Customer on contracts with closed lines. The key changes are grouped below:

Service Commitments Filtering:

  • Updated logic in table 8059 "Subscription Line" to filter out closed subscription lines by adding SetRange(Closed, false) in relevant methods, ensuring only open lines are considered in processing. [1] [2]

Testing and Validation:

  • Added a new test ChangeSellToCustomerOnContractWithClosedSubscriptionLines in codeunit 148155 "Contracts Test" to verify that changing the Sell-to Customer on a contract with closed subscription lines does not result in errors, confirming the robustness of the new filtering logic.

Work Item(s)

Fixes #6970

@miljance miljance requested a review from a team as a code owner March 6, 2026 16:27
@github-actions github-actions bot added AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][SubscriptionBilling]: Customer cannot be changed on contract with closed subscription lines

1 participant