ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Change Request] Codeunit 5606 - FA Check Consistency - OnBeforeCreateDisposerError

Open Codey42 opened this issue 4 years ago • 1 comments

Dear ALAppExtensions team,

Through this issue we would like to request extending event publisher OnBeforeCreateDisposerError in Codeunit 5606 FA Check Consistency to the following signature:

[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDisposerError(FALedgerEntry: Record "FA Ledger Entry";
                                            FixedAsset: Record "Fixed Asset";
                                            DeprBookCode: code[10];
                                            var IsHandled: Boolean)
begin
end;

which would be called as follows in CreateDisposedError:

local procedure CreateDisposedError(FixedAsset: Record "Fixed Asset"; DeprBookCode: Code[10])
var
    DepreciationCalc: Codeunit "Depreciation Calculation";
    IsHandled: Boolean;
begin
    IsHandled := false;
    OnBeforeCreateDisposerError(FALedgEntry, FixedAsset, DeprBookCode, IsHandled);
    if not IsHandled then
        Error(Text001, DepreciationCalc.FAName(FixedAsset, DeprBookCode));
end;

Codey42 avatar May 02 '22 12:05 Codey42

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.

JesperSchulz avatar May 05 '22 17:05 JesperSchulz