Table 99000751 Shop Calendar

App
Base Application
Namespace
Microsoft.Manufacturing.Capacity
Versions
17-28

Fields, 2Keys, 1

Versions171819202122232425262728

Source29

Source in 29

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";
}