Skip to content

[Event Request][W1][Table][39][Purchase Line] OnBeforeUpdatePrepmtAmounts event added parameters #29790

@MacekE

Description

@MacekE

Why do you need this change?

We have a logic on sales lines, that we can not mirror on purchase side, because events are missing parameters. Makes custom prepayment logic harder to handle.

Describe the request

I would just like to extend parameters in event, so it matches Sales Line equal event.
In procedure UpdatePrePaymentAmounts() on purchase line there is event OnBeforeUpdatePrepmtAmounts(Rec, PurchHeader, IsHandled);

OnBeforeUpdatePrepmtAmounts(Rec, PurchHeader, IsHandled);
to
OnBeforeUpdatePrepmtAmounts(Rec, PurchHeader, IsHandled, xRec, CurrFieldNo);

[IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtAmounts(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean) begin end;
to
[IntegrationEvent(false, false)] local procedure OnBeforeUpdatePrepmtAmounts(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean; xPurchaseLine: Record "Purchase Line"; FieldNo: Integer) begin end;
Internal work item: AB#625158

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions