bcquality/microsoft/knowledge/style/dateformula-evaluate-needs-language-independent-literals.good.al
Jesper Schulz-Wedde d38377b85e
Clarify locale-safe DateFormula Evaluate inputs (#193)
* Clarify locale-safe DateFormula Evaluate inputs

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Normalize DateFormula article sections

Keep the analyzer-gap explanation in Description and its scoped probe evidence in References, without a novel Validation section. Normative guidance and fixtures are unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-21 10:16:07 +02:00

18 lines
517 B
AL

codeunit 50101 "Good Review Scheduling"
{
procedure NextReviewDate(Interval: DateFormula; ReferenceDate: Date): Date
begin
if Format(Interval) = '' then
Evaluate(Interval, '<1W>');
exit(CalcDate(Interval, ReferenceDate));
end;
procedure NextReviewFromUserInput(UserFormulaText: Text; ReferenceDate: Date): Date
var
Interval: DateFormula;
begin
Evaluate(Interval, UserFormulaText);
exit(NextReviewDate(Interval, ReferenceDate));
end;
}