ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 179 - Reversal Entry - InsertFromCustLedgEntry

Open almatlansag opened this issue 7 years ago • 1 comments

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

LOCAL InsertFromCustLedgEntry(VAR TempRevertTransactionNo : TEMPORARY Record Integer;Number : Integer;RevType : 'Transaction,Register';VAR NextLineNo : Integer)
....
IF CustLedgEntry.FINDSET THEN
  REPEAT
    ....
    CLEAR(TempReversalEntry);
    IF RevType = RevType::Register THEN
      TempReversalEntry."G/L Register No." := Number;
    TempReversalEntry."Reversal Type" := RevType;
    TempReversalEntry."Entry Type" := TempReversalEntry."Entry Type"::Customer;
    Cust.GET(CustLedgEntry."Customer No.");
    TempReversalEntry."Account No." := Cust."No.";
    TempReversalEntry."Account Name" := Cust.Name;
    TempReversalEntry.CopyFromCustLedgEntry(CustLedgEntry);
    TempReversalEntry."Line No." := NextLineNo;
    NextLineNo := NextLineNo + 1;
    // >>>>
    OnBeforeInsertFromCustLedgEntry(TempReversalEntry,CustLedgEntry);
    // <<<<
    TempReversalEntry.INSERT;
....

Event signature:

LOCAL [IntegrationEvent] OnBeforeInsertFromCustLedgEntry(VAR ReversalEntry : Record "Reversal Entry";CustLedgerEntry : Record "Cust. Ledger Entry")

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

almatlansag avatar Nov 11 '19 19: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