Skip to content

Comments

[Subscription Billing] Fix deferral creation, release, and credit memo handling#6636

Open
miljance wants to merge 6 commits intomicrosoft:mainfrom
miljance:SBDeferralFixesAndChanges
Open

[Subscription Billing] Fix deferral creation, release, and credit memo handling#6636
miljance wants to merge 6 commits intomicrosoft:mainfrom
miljance:SBDeferralFixesAndChanges

Conversation

@miljance
Copy link
Contributor

@miljance miljance commented Feb 11, 2026

Summary

This pull request introduces a new data upgrade step to populate posting group fields in contract deferral records, along with some code clean-up and improvements/fixes across related modules.

  1. Extensibility: Five core deferral objects need integration points (events) for ISV extensions to customize behavior during deferral creation and release processes.

  2. Missing Posting Groups in Deferrals: Contract deferrals cannot be released when the original posted documents are unavailable (e.g., in data migration scenarios), because posting group information is retrieved from posted invoice/credit memo lines instead of being stored in the deferral entries.

  3. Zero-Amount Deferrals: The system creates unnecessary deferral entries and G/L postings for contract lines with 0.00 amounts, leading to excessive ledger entries with no financial impact.

  4. Inconsistent Partial Period Handling: Vendor contract deferrals handle partial billing periods inconsistently—some invoices are deferred based on full months while others are calculated daily, causing incorrect revenue recognition.

  5. Credit Memo Deferral Gap: Credit memos with amounts exceeding the original invoice amount do not generate corresponding deferral entries, resulting in incomplete revenue recognition.

  6. Double Deferral Generation: When both contract-based deferrals and standard deferral codes are used, deferrals are incorrectly created in both systems simultaneously.

Work Item(s)

Fixes #6281

@miljance miljance requested a review from a team as a code owner February 11, 2026 13: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 Feb 11, 2026
@miljance miljance changed the title Fix deferral creation, release, and credit memo handling [Subscription Billing] Fix deferral creation, release, and credit memo handling Feb 11, 2026
Copy link

@vkozlov-sit vkozlov-sit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Miljan, please check the comments, rather optimization related remarks.

@miljance miljance requested a review from vkozlov-sit February 12, 2026 16:38
vkozlov-sit

This comment was marked as resolved.

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][Extensibility][MultiObjects][Subscription Billing] Deferrals extensibility and multiple critical fixes

2 participants