Skip to content

table 111 "Sales Shipment Line" OnAfterInsertInvLineFromShptLine, OnInsertInvLineFromShptLineOnBeforeValidateQuantity, OnInsertInvLineFromShptLineOnAfterInsertAllLines #29499

@Kotaite

Description

@Kotaite

Why do you need this change?

At 4PS Construct, we require strict consistency between our event signatures and the actual usage in our codebase. The original integration events for OnAfterInsertInvLineFromShptLine, OnInsertInvLineFromShptLineOnBeforeValidateQuantity, and OnInsertInvLineFromShptLineOnAfterInsertAllLines did not use var for SalesShipmentLine parameter, which could lead to issues when event subscribers need to modify these records.

To ensure that event subscribers can properly modify the SalesShipmentLine parameters, we updated the event signatures to use var where necessary. This change aligns the event signatures with best practices and the actual requirements of our event subscribers.

Describe the request

Dear ALAppExtensions team,
On behalf of 4PS, I would like to request to add var for SalesShipmentLine parameter in OnAfterInsertInvLineFromShptLine, OnInsertInvLineFromShptLineOnBeforeValidateQuantity, and OnInsertInvLineFromShptLineOnAfterInsertAllLines events in table 111 "Sales Shipment Line"

Current code:

Image Image Image

Suggested version:

Image Image Image Internal work item: [AB#615897](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/615897)

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions