KVSPSAItemJnlPostLine#
Events#
KVSPSAOnAfterOnAfterApplyItemLedgEntrySetFiltersItemJnlPostLine(Record Item Ledger Entry, Record Item Ledger Entry, Record Item Journal Line) :#
Summary: Event triggered after setting filters on item ledger entries during the apply item ledger entry process. Allows subscribers to modify or extend the filtering logic applied to item ledger entries after the standard filters have been set.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterOnAfterApplyItemLedgEntrySetFiltersItemJnlPostLine(var FilteredItemLedgerEntry: Record "Item Ledger Entry"; ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAItemJnlPostLine", 'KVSPSAOnAfterOnAfterApplyItemLedgEntrySetFiltersItemJnlPostLine', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterOnAfterApplyItemLedgEntrySetFiltersItemJnlPostLine(var FilteredItemLedgerEntry: Record "Item Ledger Entry"; ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line")
begin
end;
Parameters:
FilteredItemLedgerEntry
: The filtered item ledger entry record that can be further modified by subscribers.ItemLedgerEntry
: The source item ledger entry providing context for the filtering operation.ItemJournalLine
: The item journal line that initiated the apply operation and provides additional filtering context.
KVSPSAOnBeforeOnAfterInitItemLedgEntryItemJnlPostLine(Record Item Ledger Entry, Record Item Journal Line, Boolean) :#
Summary: Event triggered before performing additional initialization of item ledger entry fields after the standard initialization. Allows subscribers to implement custom field initialization logic or skip the standard PSA field initialization entirely.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeOnAfterInitItemLedgEntryItemJnlPostLine(var ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAItemJnlPostLine", 'KVSPSAOnBeforeOnAfterInitItemLedgEntryItemJnlPostLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeOnAfterInitItemLedgEntryItemJnlPostLine(var ItemLedgerEntry: Record "Item Ledger Entry"; ItemJournalLine: Record "Item Journal Line"; var IsHandled: Boolean)
begin
end;
Parameters:
ItemLedgerEntry
: The item ledger entry that will be initialized and can be customized by subscribers.ItemJournalLine
: The item journal line providing source values for the initialization process.IsHandled
: Boolean flag that subscribers can set to indicate they have handled the initialization and standard PSA field setup should be skipped.
KVSPSAOnBeforeUpdateDimensionOnBeforeInsertValueEntryItemJnlPostLine(Record Item Ledger Entry, Record Value Entry, Record Item Journal Line, Boolean) :#
Summary: Event triggered before updating dimensions on value entry during item journal posting process. Allows subscribers to control whether dimensions should be updated or implement custom dimension update logic.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateDimensionOnBeforeInsertValueEntryItemJnlPostLine(var ItemLedgerEntry: Record "Item Ledger Entry"; var ValueEntry: Record "Value Entry"; ItemJournalLine: Record "Item Journal Line"; var UpdateDimensions: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSPSAItemJnlPostLine", 'KVSPSAOnBeforeUpdateDimensionOnBeforeInsertValueEntryItemJnlPostLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeUpdateDimensionOnBeforeInsertValueEntryItemJnlPostLine(var ItemLedgerEntry: Record "Item Ledger Entry"; var ValueEntry: Record "Value Entry"; ItemJournalLine: Record "Item Journal Line"; var UpdateDimensions: Boolean)
begin
end;
Parameters:
ItemLedgerEntry
: The item ledger entry providing context for the dimension update operation.ValueEntry
: The value entry that will have its dimensions updated.ItemJournalLine
: The item journal line providing the source dimension information.UpdateDimensions
: Boolean flag that subscribers can modify to control whether the standard dimension update should occur.