Skip to content

[Extensibility][SubscriptionBilling]: Add PostingDate parameter to OnBeforeReleaseCustomerContractDeferral and OnBeforeReleaseVendorContractDeferral integration events #7980

@miljance

Description

@miljance

Describe the issue

The integration events OnBeforeReleaseCustomerContractDeferral and OnBeforeReleaseVendorContractDeferral in Contract Deferrals Release.al currently do not expose the PostingDate parameter. The PostingDate is available in the local scope at the time these events are raised (line 158 and 213 respectively), but subscribers have no way to access it, limiting what external code can do in response to these events.

Expected behavior

Both integration events should include PostingDate as an additional parameter, so that subscribers can read (and optionally modify) the posting date as part of their event handling logic.

// Current
OnBeforeReleaseCustomerContractDeferral(CustomerContractDeferral, ShouldRelease)

// Expected
OnBeforeReleaseCustomerContractDeferral(CustomerContractDeferral, ShouldRelease, PostingDate)

The same applies to OnBeforeReleaseVendorContractDeferral.

Steps to reproduce

Not applicable

Additional context

No response

I will provide a fix for a bug

  • I will provide a fix for a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedThe issue is approvedFinanceGitHub request for Finance area
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions