-
Notifications
You must be signed in to change notification settings - Fork 692
Description
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