KVSICOImplStdUnitListPriceCh#
Events#
OnBeforeUpdateItem(Record KVSICOCalculationWorksheet, Date) :#
Summary: Raised before an Item record is updated from the calculation worksheet. Subscribers can inspect or modify the worksheet values or the posting date before the update is applied to the Item.
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateItem(var KVSICOCalculationWorksheet: Record "KVSICOCalculationWorksheet"; PostingDate: Date):
[EventSubscriber(ObjectType::Report, Report::"KVSICOImplStdUnitListPriceCh", 'OnBeforeUpdateItem', '', false, false)]
local procedure DoSomethingOnBeforeUpdateItem(var KVSICOCalculationWorksheet: Record "KVSICOCalculationWorksheet"; PostingDate: Date)
begin
end;
Parameters:
KVSICOCalculationWorksheet: The calculation worksheet record that contains the new cost and price values to be applied to the Item. Passed by reference so subscribers can change values.PostingDate: The posting date used when updating date-related Item fields (for example, "Last Unit Cost Calc. Date").
OnInsertRevalItemJnlLineOnBeforeItemJnlLineLoop(Record Item Journal Line, Boolean, Boolean) :#
Summary: Triggered before the code loops through revaluation item journal lines to set the revalued unit cost. Allows a subscriber to modify or process the journal lines, or to take over (suppressing the default processing).
[IntegrationEvent(false, false)]
local procedure OnInsertRevalItemJnlLineOnBeforeItemJnlLineLoop(var ItemJournalLine: Record "Item Journal Line"; var RevalJnlCreated: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Report, Report::"KVSICOImplStdUnitListPriceCh", 'OnInsertRevalItemJnlLineOnBeforeItemJnlLineLoop', '', false, false)]
local procedure DoSomethingOnInsertRevalItemJnlLineOnBeforeItemJnlLineLoop(var ItemJournalLine: Record "Item Journal Line"; var RevalJnlCreated: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ItemJournalLine: A reference to the Item Journal Line record(s) returned for the selected template and batch. Subscribers may inspect or modify these lines.RevalJnlCreated: Flag indicating whether revaluation journal lines have been created. Subscribers can set or read this flag.IsHandled: Set to true by a subscriber to skip the default loop/update processing in the publisher.