Skip to content

[Master]-Subscription Billing: Items created from Catalogue Items are deleted after deleting a Contract Invoice#7157

Merged
JesperSchulz merged 1 commit intomicrosoft:mainfrom
v-ajaztabrez:bugs/Bug-625680-Master-SubsBilling-Items-created-from-Catalog-Items-are-deleted
Mar 18, 2026
Merged

[Master]-Subscription Billing: Items created from Catalogue Items are deleted after deleting a Contract Invoice#7157
JesperSchulz merged 1 commit intomicrosoft:mainfrom
v-ajaztabrez:bugs/Bug-625680-Master-SubsBilling-Items-created-from-Catalog-Items-are-deleted

Conversation

@v-ajaztabrez
Copy link
Contributor

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

AB#625680

Summary

Work Item(s) #625680

Bug 625680: [master] [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.

@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 16, 2026
@github-actions github-actions bot added this to the Version 29.0 milestone Mar 16, 2026
@v-ajaztabrez
Copy link
Contributor Author

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

@JesperSchulz JesperSchulz added the Finance GitHub request for Finance area label Mar 17, 2026
@JesperSchulz JesperSchulz merged commit 99fd197 into microsoft:main Mar 18, 2026
47 checks passed
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 Finance GitHub request for Finance area 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.

3 participants