ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Change Request] Codeunit 8 "AccSchedManagement" OnBeforeCalcCell

Open ReneZiel opened this issue 4 years ago • 1 comments

Could you please change the event OnBeforeCalcCell in the function CalcCell? Add an IsHandled parameter.

 procedure CalcCell(var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; CalcAddCurr: Boolean): Decimal
    var
        Result: Decimal;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeCalcCell(AccSchedLine, ColumnLayout, CalcAddCurr, Recalculate, Result, IsHandled);
        if IsHandled then
            exit(Result);

        AccountScheduleLine.CopyFilters(AccSchedLine);
        StartDate := AccountScheduleLine.GetRangeMin("Date Filter");
        if EndDate <> AccountScheduleLine.GetRangeMax("Date Filter") then begin
            EndDate := AccountScheduleLine.GetRangeMax("Date Filter");
            FiscalStartDate := AccountingPeriodMgt.FindFiscalYear(EndDate);
        end;
...


[IntegrationEvent(false, false)]
    local procedure OnBeforeCalcCell(var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; CalcAddCurr: Boolean; Recalculate: Boolean; var Result: Decimal; var IsHandled: Boolean)
    begin
    end;

ReneZiel avatar May 04 '22 06:05 ReneZiel

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