Table 5220 Human Resource Unit of Measure, source in 29
Source29
src/Layers/W1/BaseApp/HumanResources/Setup/HumanResourceUnitofMeasure.Table.al68 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.Foundation.UOM;
table 5220 "Human Resource Unit of Measure"
{
Caption = 'Human Resource Unit of Measure';
DataCaptionFields = "Code";
DrillDownPageID = "Human Res. Units of Measure";
LookupPageID = "Human Res. Units of Measure";
DataClassification = CustomerContent;
fields
{
field(1; "Code"; Code[10])
{
Caption = 'Code';
ToolTip = 'Specifies one of the unit of measure codes.';
NotBlank = true;
TableRelation = "Unit of Measure";
}
field(2; "Qty. per Unit of Measure"; Decimal)
{
AutoFormatType = 0;
Caption = 'Qty. per Unit of Measure';
ToolTip = 'Specifies the quantity, per unit of measure.';
DecimalPlaces = 0 : 5;
InitValue = 1;
trigger OnValidate()
begin
if "Qty. per Unit of Measure" <= 0 then
FieldError("Qty. per Unit of Measure", Text000);
HumanResSetup.Get();
if HumanResSetup."Base Unit of Measure" = Code then
TestField("Qty. per Unit of Measure", 1);
end;
}
}
keys
{
key(Key1; "Code")
{
Clustered = true;
}
}
fieldgroups
{
fieldgroup(DropDown; "Code", "Qty. per Unit of Measure")
{
}
}
var
HumanResSetup: Record "Human Resources Setup";
#pragma warning disable AA0074
Text000: Label 'must be greater than 0';
#pragma warning restore AA0074
}