ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5632 - FA Jnl.-Post Line - GenJnlPostLine

Open almatlansag opened this issue 7 years ago • 1 comments

Could you please create an Integration event in Codeunit 5632 FA Jnl.-Post Line, in function GenJnlPostLine?

[External] GenJnlPostLine(...)
....
    MakeFALedgEntry.CopyFromGenJnlLine(FALedgEntry,GenJnlLine);
    FALedgEntry.Amount := FAAmount;
    FALedgEntry."VAT Amount" := VATAmount;
    FALedgEntry."Transaction No." := NextTransactionNo;
    FALedgEntry."G/L Entry No." := NextGLEntryNo;
    OnBeforePostFixedAssetFromGenJnlLine(GenJnlLine,FALedgEntry,FAAmount,VATAmount);
    PostFixedAsset;
    // >>>>>>>>
    OnAfterPostFixedAssetFromGenJnlLine(GenJnlLine,FALedgEntry);
    // <<<<<<<<
  END;
END;

OnAfterGenJnlPostLine(GenJnlLine);

Event signature:

LOCAL [IntegrationEvent] OnAfterPostFixedAssetFromGenJnlLine(FAGLJnlLine : Record "Gen. Journal Line";FALedgEntry : Record "FA Ledger Entry")

We need it in our extension for Cost Accounting integration.

almatlansag avatar Nov 11 '19 22:11 almatlansag

We have to investigate if this event request was really necessary. Maybe our needs can be solved with using existing OnAfterGenJnlPostLine event.

almatlansag avatar Nov 12 '19 13:11 almatlansag