ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 179 - Reversal Entry - InsertFromCustLedgEntry
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.
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.