AL
AL copied to clipboard
[Event Requests] Codeunit 22 - Item Jnl.-Post Line
Can you please modify method "InitCorrItemLedgEntry" and relatives events to Codeunit 22 "Item Jnl.-Post Line"? The "InitCorrItemLedgEntry" method has first parameter "OldItemLedgEntry" not in VAR:
LOCAL InitCorrItemLedgEntry(OldItemLedgEntry : Record "Item Ledger Entry";
VAR NewItemLedgEntry : Record "Item Ledger Entry")
The Events in that method have the same problem whit parameter "OldItemLedgEntry":
LOCAL [IntegrationEvent] OnBeforeInsertCorrItemLedgEntry(
VAR NewItemLedgerEntry : Record "Item Ledger Entry";
OldItemLedgerEntry : Record "Item Ledger Entry";
VAR ItemJournalLine : Record "Item Journal Line")
LOCAL [IntegrationEvent] OnAfterInsertCorrItemLedgEntry(
VAR NewItemLedgerEntry : Record "Item Ledger Entry";
ItemJournalLine : Record "Item Journal Line")
Thanks.
Please explain why do you need to modify OLD Item Ledger Entry here?
I need to set the "Correction" field of OLD Item Ledger Entry to "TRUE", otherwise it remains "FALSE"