[Event Request] Codeunit 5600 - FA Insert Ledger Entry - OnInsertFAOnBeforeCheckConsistency
Dear ALAppExtensions team,
Through this issue we would like to request adding event publisher OnInsertFAOnBeforeCheckConsistency in Codeunit 5600 FA Insert Ledger Entry with the following signature:
[IntegrationEvent(false, false)]
local procedure OnInsertFAOnBeforeCheckConsistency(var FALedgEntry: Record "FA Ledger Entry";
FALedgEntry3: Record "FA Ledger Entry")
begin
end;
with VAR parameter FALedgEntry.
which would be called as follows in InsertFA:
procedure InsertFA(var FALedgEntry3: Record "FA Ledger Entry")
var
IsHandled: Boolean;
begin
...
// >>>> New >>>>>>>>>>>>>>>>
OnInsertFAOnBeforeCheckConsistency(FALedgEntry,FALedgEntry3);
// <<<< New <<<<<<<<<<<<<<<<
if FALedgEntry3."FA Posting Category" = FALedgEntry3."FA Posting Category"::" " then
if FALedgEntry3."FA Posting Type".AsInteger() <= FALedgEntry3."FA Posting Type"::"Salvage Value".AsInteger() then
CODEUNIT.Run(CODEUNIT::"FA Check Consistency", FALedgEntry);
OnBeforeInsertRegister(FALedgEntry, FALedgEntry2, NextEntryNo);
InsertRegister(0, NextEntryNo);
end;
It is required due to some intermediate operations between Insert and FA Check Consistency (independent of ErrorEntryNo).
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. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.