Skip to content

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

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

[Subscription Billing] Fix deferral creation, release, and credit memo handling#6636
miljance wants to merge 7 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
AB#623188

@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
vkozlov-sit

This comment was marked as resolved.

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

This comment was marked as resolved.

@JesperSchulz JesperSchulz added the Finance GitHub request for Finance area label Feb 25, 2026
djukicmilica
djukicmilica previously approved these changes Feb 26, 2026
@github-actions github-actions bot added the Linked Issue is linked to a Azure Boards work item label Feb 26, 2026
@github-actions github-actions bot added this to the Version 29.0 milestone Feb 26, 2026
@AndersLarsenMicrosoft
Copy link
Contributor

From the log

AA0215 The file DeferralPostingPreviewBinding.Codeunit.al has an incorrect name. The valid name is DeferralPostPreviewBinding.Codeunit.al.
AA0215 The file DeferralPostingPreviewHandler.Codeunit.al has an incorrect name. The valid name is DeferralPostPreviewHandler.Codeunit.al.
AA0215 The file DeferralPostingPreviewSubscr.Codeunit.al has an incorrect name. The valid name is DeferralPostPreviewSubscr.Codeunit.al.

@miljance
Copy link
Contributor Author

From the log

AA0215 The file DeferralPostingPreviewBinding.Codeunit.al has an incorrect name. The valid name is DeferralPostPreviewBinding.Codeunit.al. AA0215 The file DeferralPostingPreviewHandler.Codeunit.al has an incorrect name. The valid name is DeferralPostPreviewHandler.Codeunit.al. AA0215 The file DeferralPostingPreviewSubscr.Codeunit.al has an incorrect name. The valid name is DeferralPostPreviewSubscr.Codeunit.al.

Fixed

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.

[Bug][Extensibility][MultiObjects][Subscription Billing] Deferrals extensibility and multiple critical fixes

5 participants