Skip to content

[28.x]-Subscription Billing: Items created from Catalogue Items are deleted after deleting a Contract Invoice#7246

Open
v-ajaztabrez wants to merge 1 commit intomicrosoft:releases/28.xfrom
v-ajaztabrez:bugs/Bug-626000-28.x-SubsBilling-Items-created-from-Catalog-Items-are-deleted
Open

[28.x]-Subscription Billing: Items created from Catalogue Items are deleted after deleting a Contract Invoice#7246
v-ajaztabrez wants to merge 1 commit intomicrosoft:releases/28.xfrom
v-ajaztabrez:bugs/Bug-626000-28.x-SubsBilling-Items-created-from-Catalog-Items-are-deleted

Conversation

@v-ajaztabrez
Copy link
Contributor

@v-ajaztabrez v-ajaztabrez commented Mar 19, 2026

AB#626000

Summary
Work Item(s) #626000

Bug 626000: [28.x] [all-e]Subscription Billing: Items created from Catalogue Items are deleted after deleting a Contract Invoice

Fixes #
Added an event subscriber PreventDeletionOfSubscriptionItemOnDelNonStockItem in codeunit Sub. Contracts Item Management (8055), subscribing to Catalog Item Management.OnDelNonStockItemOnAfterCheckRelations.
When the deletion flow reaches the item, the subscriber checks whether the item has a Subscription Option of "Service Commitment Item" or "Invoicing Item". If so, it sets ShouldExit := true, aborting the item deletion and preserving the item for continued use in subscription billing.

@v-ajaztabrez v-ajaztabrez requested a review from a team as a code owner March 19, 2026 01:09
@v-ajaztabrez
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Microsoft"

@github-actions github-actions bot added AL: Apps (W1) Add-on apps for W1 From Fork Pull request is coming from a fork Linked Issue is linked to a Azure Boards work item labels Mar 19, 2026
@github-actions github-actions bot added this to the Version 28.1 milestone Mar 19, 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 Linked Issue is linked to a Azure Boards work item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant