Table 335 Resource Price Change

Base Application, Microsoft.Projects.Resources.Resource

src/Layers/W1/BaseApp/Projects/Resources/Resource/ResourcePriceChange.Table.al87 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.Projects.Resources.Resource;using Microsoft.Finance.Currency;using Microsoft.Utilities;table 335 "Resource Price Change"{    Caption = 'Resource Price Change';    DrillDownPageID = "Resource Price Changes";    LookupPageID = "Resource Price Changes";    DataClassification = CustomerContent;    fields    {        field(2; Type; Option)        {            Caption = 'Type';            ToolTip = 'Specifies the type of resource for which the alternate unit price is valid.';            OptionCaption = 'Resource,Group(Resource),All';            OptionMembers = Resource,"Group(Resource)",All;        }        field(3; "Code"; Code[20])        {            Caption = 'Code';            ToolTip = 'Specifies the resource code for which the alternate unit price is valid.';            TableRelation = if (Type = const(Resource)) Resource            else            if (Type = const("Group(Resource)")) "Resource Group";            trigger OnValidate()            begin                if (Code <> '') and (Type = Type::All) then                    FieldError(Code, StrSubstNo(Text000, FieldCaption(Type), Format(Type)));            end;        }        field(4; "Work Type Code"; Code[10])        {            Caption = 'Work Type Code';            ToolTip = 'Specifies which work type the resource applies to. Prices are updated based on this entry.';            TableRelation = "Work Type";        }        field(5; "Currency Code"; Code[10])        {            Caption = 'Currency Code';            ToolTip = 'Specifies the currency code that the alternate unit price is in.';            TableRelation = Currency;        }        field(6; "Current Unit Price"; Decimal)        {            AutoFormatExpression = Rec."Currency Code";            AutoFormatType = 2;            Caption = 'Current Unit Price';            ToolTip = 'Specifies the alternate unit price of the resource.';        }        field(7; "New Unit Price"; Decimal)        {            AutoFormatExpression = Rec."Currency Code";            AutoFormatType = 2;            Caption = 'New Unit Price';            ToolTip = 'Specifies the new unit price that is valid for the selected combination of resource type, resource code, project number, or work type.';        }    }    keys    {        key(Key1; Type, "Code", "Work Type Code", "Currency Code")        {            Clustered = true;        }    }    fieldgroups    {    }    var#pragma warning disable AA0074#pragma warning disable AA0470        Text000: Label 'cannot be specified when %1 is %2';#pragma warning restore AA0470#pragma warning restore AA0074}