mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 14:46:55 +01:00
Contributed by CURABIS ApS, generalized from patterns observed across real AppSource/PTE development. Each article follows the knowledge file format (frontmatter, Description/Best Practice/Anti Pattern, sibling .good.al/.bad.al samples).
16 lines
267 B
AL
16 lines
267 B
AL
table 50100 "Sales Task"
|
|
{
|
|
fields
|
|
{
|
|
field(1; "No."; Code[20]) { }
|
|
field(10; Blocked; Boolean) { }
|
|
}
|
|
}
|
|
|
|
codeunit 50100 "Sales Task Check"
|
|
{
|
|
procedure IsOverdue(DueDate: Date): Boolean
|
|
begin
|
|
exit(DueDate < Today);
|
|
end;
|
|
}
|