mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 22:56:55 +01:00
Second contribution from CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Cross-checked against the current microsoft/knowledge corpus before opening; several originally-drafted candidates were dropped as duplicates of existing files.
9 lines
273 B
AL
9 lines
273 B
AL
codeunit 50101 "Batch Job Runner"
|
|
{
|
|
procedure AdvanceToNextBusinessDay()
|
|
begin
|
|
// Anti-pattern: repurposes the user's session WorkDate as a
|
|
// scratch variable for unrelated business logic.
|
|
WorkDate(CalcDate('<1D>', WorkDate()));
|
|
end;
|
|
}
|