Table extension 20511 Subc. Purchase Header Arch

Subcontracting, Microsoft.Manufacturing.Subcontracting

src/Apps/W1/Subcontracting/App/src/Purchase/SubcPurchaseHeaderArch.TableExt.al35 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.Subcontracting;using Microsoft.Inventory.Location;using Microsoft.Purchases.Archive;using Microsoft.Purchases.Document;tableextension 20511 "Subc. Purchase Header Arch" extends "Purchase Header Archive"{    AllowInCustomizations = AsReadOnly;    fields    {        field(20520; "Subc. Location Code"; Code[10])        {            Caption = 'Subcontracting Location Code';            DataClassification = CustomerContent;            TableRelation = Location where("Use As In-Transit" = const(false));            ;        }        field(20521; "Subc. Order"; Boolean)        {            CalcFormula = exist("Purchase Line" where("Document Type" = const(Order),                                                       "Document No." = field("No."),                                                       "Prod. Order No." = filter(<> ''),                                                       "Prod. Order Line No." = filter(<> 0)));            Caption = 'Subcontracting Order';            Editable = false;            FieldClass = FlowField;        }    }}