Table 99000751 Shop Calendar

Base Application, Microsoft.Manufacturing.Capacity

src/Layers/W1/BaseApp/Manufacturing/Capacity/ShopCalendar.Table.al56 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.Manufacturing.Capacity;table 99000751 "Shop Calendar"{    Caption = 'Shop Calendar';    DataCaptionFields = "Code", Description;    DrillDownPageID = "Shop Calendars";    LookupPageID = "Shop Calendars";    DataClassification = CustomerContent;    fields    {        field(1; "Code"; Code[10])        {            Caption = 'Code';            ToolTip = 'Specifies a code to identify for this shop calendar.';            NotBlank = true;        }        field(2; Description; Text[100])        {            Caption = 'Description';            ToolTip = 'Specifies the description of the shop calendar.';        }    }    keys    {        key(Key1; "Code")        {            Clustered = true;        }    }    fieldgroups    {    }    trigger OnDelete()    begin        ShopCalendarWorkDays.SetRange("Shop Calendar Code", Code);        ShopCalendarWorkDays.DeleteAll();        ShopCalHoliday.SetRange("Shop Calendar Code", Code);        ShopCalHoliday.DeleteAll();    end;    var        ShopCalendarWorkDays: Record "Shop Calendar Working Days";        ShopCalHoliday: Record "Shop Calendar Holiday";}