Skip to content

KVSKBAMatchedOrderLineMgmt#

Events#

OnPurchInvoiceSubformOnAfterActionEventOnBeforeModifyPurchaseLine(Record Purchase Line, Record Purchase Line) :#

Summary: The OnPurchInvoiceSubformOnAfterActionEventOnBeforeModifyPurchaseLine event is raised before modifying the purchase line in purchase invoice subform after action event GetOrderLines.

[IntegrationEvent(false, false)]
local procedure OnPurchInvoiceSubformOnAfterActionEventOnBeforeModifyPurchaseLine(OrderPurchaseLine: Record "Purchase Line"; var ToModifyPurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAMatchedOrderLineMgmt", 'OnPurchInvoiceSubformOnAfterActionEventOnBeforeModifyPurchaseLine', '', false, false)]
local procedure DoSomethingOnPurchInvoiceSubformOnAfterActionEventOnBeforeModifyPurchaseLine(OrderPurchaseLine: Record "Purchase Line"; var ToModifyPurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • OrderPurchaseLine: The record of the order purchase line.
  • ToModifyPurchaseLine: The record of the invoice purchase line to be modified.

Remarks: The main purpose of this event is to allow customization on invoice purchase line before it is modified, and the customization should be based on the information from order purchase line. For example, if there are custom fields which are not in managed in the CU Matched Order Line Mgmt., the values of those custom fields on invoice purchase line can be updated in the event handler based on the values of those custom fields on order purchase line.

OnNotificationInfoOnLimitationsWithKBAFeaturesMatchOrderLinesOnBeforeAssignMessageText(Text) :#

Summary: The OnNotificationInfoOnLimitationsWithKBAFeaturesMatchOrderLinesOnBeforeAssignMessageText event is raised before assigning message text for the notification about limitations with KBA features match order lines.

[IntegrationEvent(false, false)]
local procedure OnNotificationInfoOnLimitationsWithKBAFeaturesMatchOrderLinesOnBeforeAssignMessageText(var MessageText: Text): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAMatchedOrderLineMgmt", 'OnNotificationInfoOnLimitationsWithKBAFeaturesMatchOrderLinesOnBeforeAssignMessageText', '', false, false)]
local procedure DoSomethingOnNotificationInfoOnLimitationsWithKBAFeaturesMatchOrderLinesOnBeforeAssignMessageText(var MessageText: Text)
begin
end;

Parameters:

  • MessageText: The message text to be assigned for the notification.

Remarks: The main purpose of this event is to allow customization on the message text for the notification about limitations with KBA features match order lines. For example, if the customer want to add more description in the notification message, they can subscribe this event and update the MessageText parameter.