Table 5211 Employment Contract

Base Application, Microsoft.HumanResources.Setup

src/Layers/W1/BaseApp/HumanResources/Setup/EmploymentContract.Table.al53 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.HumanResources.Setup;using Microsoft.HumanResources.Employee;table 5211 "Employment Contract"{    Caption = 'Employment Contract';    DrillDownPageID = "Employment Contracts";    LookupPageID = "Employment Contracts";    DataClassification = CustomerContent;    fields    {        field(1; "Code"; Code[10])        {            Caption = 'Code';            ToolTip = 'Specifies a code for the employment contract.';            NotBlank = true;        }        field(2; Description; Text[100])        {            Caption = 'Description';            ToolTip = 'Specifies a description for the employment contract.';        }        field(3; "No. of Contracts"; Integer)        {            CalcFormula = count(Employee where(Status = const(Active),                                                "Emplymt. Contract Code" = field(Code)));            Caption = 'No. of Contracts';            ToolTip = 'Specifies the number of contracts associated with the entry.';            Editable = false;            FieldClass = FlowField;        }    }    keys    {        key(Key1; "Code")        {            Clustered = true;        }    }    fieldgroups    {    }}