ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Change Request] Codeunit 8 "AccSchedManagement" OnBeforeCalcCellValue

Open ReneZiel opened this issue 4 years ago • 1 comments

Could you please change the event OnBeforeCalcCellValue in the function CalcCellValue? Add an IsHandled parameter.

procedure CalcCellValue(AccSchedLine: Record "Acc. Schedule Line"; ColumnLayout: Record "Column Layout"; CalcAddCurr: Boolean): Decimal
    var
        GLAcc: Record "G/L Account";
        CostType: Record "Cost Type";
        CFAccount: Record "Cash Flow Account";
        Result: Decimal;
        IsHandled: Boolean;
    begin
        Result := 0;
        IsHandled := false;
        OnBeforeCalcCellValue(AccSchedLine, ColumnLayout, CalcAddCurr, Result, IsHandled);
        if IsHandled then
            exit(Result);

        if AccSchedLine.Totaling = '' then
            exit(Result);

        if AccSchedCellValue.Get(AccSchedLine."Line No.", ColumnLayout."Line No.") then begin
...


[IntegrationEvent(true, false)]
    local procedure OnBeforeCalcCellValue(var AccSchedLine: Record "Acc. Schedule Line"; var ColumnLayout: Record "Column Layout"; CalcAddCurr: 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