AL icon indicating copy to clipboard operation
AL copied to clipboard

[Event Requests] Codeunit 22 - Item Jnl.-Post Line

Open riki815 opened this issue 8 years ago • 2 comments

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.

riki815 avatar Aug 09 '18 08:08 riki815

Please explain why do you need to modify OLD Item Ledger Entry here?

AlexanderYakunin avatar Aug 13 '18 10:08 AlexanderYakunin

I need to set the "Correction" field of OLD Item Ledger Entry to "TRUE", otherwise it remains "FALSE"

riki815 avatar Aug 14 '18 13:08 riki815