ALAppExtensions
ALAppExtensions copied to clipboard
[Event Change Request] Codeunit 8 "AccSchedManagement" OnBeforeCalcCell
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;
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.