KVSKBAItemJournalLine#
Events#
OnBeforeCheckOnBeforeDisplayErrorIfItemIsBlocked(Record Item, Record Item Journal Line, Boolean) :#
Summary: Integration event that allows customization before checking if an item is blocked in item journal line validation.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckOnBeforeDisplayErrorIfItemIsBlocked(Item: Record "Item"; ItemJournalLine: Record "Item Journal Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemJournalLine", 'OnBeforeCheckOnBeforeDisplayErrorIfItemIsBlocked', '', false, false)]
local procedure DoSomethingOnBeforeCheckOnBeforeDisplayErrorIfItemIsBlocked(Item: Record "Item"; ItemJournalLine: Record "Item Journal Line"; var Handled: Boolean)
begin
end;
Parameters:
Item: Item record being validatedItemJournalLine: Item journal line record being processedHandled: Variable indicating whether a subscriber has handled the validation (set to true to skip standard validation)
Remarks: Use this event to implement custom item blocking validation logic for item journal lines
OnBeforeOnAppliesfromEntryOnBeforeCheckTrackingExistsError(Record Item Journal Line, Record Item Ledger Entry, Boolean) :#
Summary: Integration event that allows customization before checking tracking existence errors when validating applies-from entry.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnAppliesfromEntryOnBeforeCheckTrackingExistsError(ItemJournalLine: Record "Item Journal Line"; ItemLedgEntry: Record "Item Ledger Entry"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAItemJournalLine", 'OnBeforeOnAppliesfromEntryOnBeforeCheckTrackingExistsError', '', false, false)]
local procedure DoSomethingOnBeforeOnAppliesfromEntryOnBeforeCheckTrackingExistsError(ItemJournalLine: Record "Item Journal Line"; ItemLedgEntry: Record "Item Ledger Entry"; var Handled: Boolean)
begin
end;
Parameters:
ItemJournalLine: Item journal line record being validatedItemLedgEntry: Item ledger entry record being applied fromHandled: Variable indicating whether a subscriber has handled the tracking validation (set to true to skip standard validation)
Remarks: Use this event to implement custom item tracking validation logic when applying from existing item ledger entries