KVSKBAUpdComEntriesAdjProfit
Events
OnBeforeFindCommissionRate2(Record KVSKBACommissionJournalLine, Record KVSKBAComRate, Integer, Boolean) :
Summary: Integration event for finding commission rates.
[IntegrationEvent(false, false)]
local procedure OnBeforeFindCommissionRate2(var KVSKBACommissionJournalLine: Record "KVSKBACommissionJournalLine"; var KVSKBAComRate: Record "KVSKBAComRate" temporary; var ReturnValue: Integer; var IsHandled: Boolean):
Parameters:
KVSKBACommissionJournalLine: The commission journal line record for which the commission rate is being searched.KVSKBAComRate: The temporary commission rate record that will hold the found commission rate. Can be modified by subscribers.ReturnValue: The return value indicating the result of the commission rate search. Can be modified by subscribers.IsHandled: Indicates whether the event has been handled by the subscriber. If set to true, the default logic will be skipped.
Remarks: This integration event is raised when searching for a commission rate based on the provided commission journal line. Subscribers can intercept this event to customize the logic for finding commission rates, including modifying the temporary commission rate record and the return value.