ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 179 - Reversal Entry - InsertFromGLEntry

Open almatlansag opened this issue 7 years ago • 1 comments

Could you please create an Integration event in Table 179 Reversal Entry, in function InsertFromGLEntry?

LOCAL InsertFromGLEntry(VAR TempRevertTransactionNo : TEMPORARY Record Integer;Number : Integer;RevType : 'Transaction,Register';VAR NextLineNo : Integer)
....
      CLEAR(TempReversalEntry);
      IF RevType = RevType::Register THEN
        TempReversalEntry."G/L Register No." := Number;
      TempReversalEntry."Reversal Type" := RevType;
      TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::"G/L Account";
      IF NOT GLAcc.GET(GLEntry."G/L Account No.") THEN
        ERROR(CannotReverseDeletedErr,GLEntry.TABLECAPTION,GLAcc.TABLECAPTION);
      TempReversalEntry."Account No." := GLAcc."No.";
      TempReversalEntry."Account Name" := GLAcc.Name;
      TempReversalEntry.CopyFromGLEntry(GLEntry);
      TempReversalEntry."Line No." := NextLineNo;
      NextLineNo := NextLineNo + 1;
      // >>>>>>>>>>>
      OnBeforeInsertFromGLEntry(TempReversalEntry,GLEntry);
      // <<<<<<<<<<<
      TempReversalEntry.INSERT;
....

Event signature:

LOCAL [IntegrationEvent] OnBeforeInsertFromGLEntry(VAR ReversalEntry : Record "Reversal Entry";GLEntry : Record "G/L Entry")

For our extension: we need to fill our fields too.

almatlansag avatar Nov 11 '19 20:11 almatlansag

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

bc-ghost avatar Nov 27 '19 10:11 bc-ghost