Table of Contents

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): 

Parameters:

  • Item: Item record being validated
  • ItemJournalLine: Item journal line record being processed
  • Handled: 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): 

Parameters:

  • ItemJournalLine: Item journal line record being validated
  • ItemLedgEntry: Item ledger entry record being applied from
  • Handled: 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