ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 179 - Reversal Entry - InsertFromVendLedgEntry
Could you please create an Integration event in Table 179 Reversal Entry, in function InsertFromVendLedgEntry?
LOCAL InsertFromVendLedgEntry(VAR TempRevertTransactionNo : TEMPORARY Record Integer;Number : Integer;RevType : 'Transaction,Register';VAR NextLineNo : Integer)
....
IF VendLedgEntry.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"::Vendor;
Vend.GET(VendLedgEntry."Vendor No.");
TempReversalEntry."Account No." := Vend."No.";
TempReversalEntry."Account Name" := Vend.Name;
TempReversalEntry.CopyFromVendLedgEntry(VendLedgEntry);
TempReversalEntry."Line No." := NextLineNo;
NextLineNo := NextLineNo + 1;
// >>>>
OnBeforeInsertFromVendLedgEntry(TempReversalEntry,VendLedgEntry);
// <<<<
TempReversalEntry.INSERT;
....
Event signature:
LOCAL [IntegrationEvent] OnBeforeInsertFromVendLedgEntry(VAR ReversalEntry : Record "Reversal Entry";VendorLedgerEntry : Record "Vendor 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.