Subscription Billing: add integration events to Contract Deferrals Release#7945
Open
jeffreybulanadi wants to merge 1 commit intomicrosoft:mainfrom
Open
Conversation
…lease Adds the Service Partner parameter and two new integration events to report 8051 Contract Deferrals Release so that extensions can intercept and document the release posting with additional G/L entry data. Changes: - InsertTempGenJournalLine (both overloads): add Partner parameter of type Enum 'Service Partner'. The outer overload threads it through to the inner one. All four call sites (two customer, two vendor) pass the appropriate Enum::'Service Partner'::Customer/Vendor value. - OnBeforeInsertTempGenJournalLine integration event: raised after all fields are assigned to TempGenJournalLine but before Insert. Exposes var TempGenJournalLine and the Partner enum so subscribers can append or modify data per partner type before the buffer record is inserted. - OnBeforePostGenJnlLine integration event: raised twice inside PostGenJnlLine, once before the main-account RunWithCheck and once before the balancing-account RunWithCheck. Exposes the source TempGenJournalLine (read-only context) and var GenJnlLine (mutable) so subscribers can augment G/L entries such as adding descriptions or additional posting fields before each posting leg runs. Closes microsoft#7896
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #7896
Summary
Adds the Service Partner parameter and two new integration events to report 8051 Contract Deferrals Release, enabling extensions to intercept the release posting and document G/L entries with additional partner-specific data.
Changes
InsertTempGenJournalLine - Partner parameter added
Both local overloads of InsertTempGenJournalLine now accept Partner: Enum Service Partner as the final parameter. The outer overload (which calls UpdateWindow) threads the value through to the inner one. All four call sites are updated to pass the corresponding value:
OnBeforeInsertTempGenJournalLine (new integration event)
Raised in the inner InsertTempGenJournalLine, after all fields are assigned but before TempGenJournalLine.Insert(). Signature:
local procedure OnBeforeInsertTempGenJournalLine(var TempGenJournalLine: Record Gen. Journal Line; Partner: Enum Service Partner)
OnBeforePostGenJnlLine (new integration event)
Raised twice inside PostGenJnlLine, once before each GenJnlPostLine.RunWithCheck(GenJnlLine) call (main account leg and balancing account leg). Signature:
local procedure OnBeforePostGenJnlLine(TempGenJournalLine: Record Gen. Journal Line; var GenJnlLine: Record Gen. Journal Line)
TempGenJournalLine is passed by value (read-only source context); GenJnlLine is passed by reference so subscribers can modify fields before posting.