Table extension 20515 Subc. Purch. CrMemo Line

Subcontracting, Microsoft.Manufacturing.Subcontracting

src/Apps/W1/Subcontracting/App/src/Purchase/SubcPurchCrMemoLine.TableExt.al63 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.Manufacturing.Document;using Microsoft.Manufacturing.Routing;using Microsoft.Manufacturing.WorkCenter;using Microsoft.Purchases.History;tableextension 20515 "Subc. Purch. CrMemo Line" extends "Purch. Cr. Memo Line"{    fields    {        field(20543; "Subc. Prod. Order No."; Code[20])        {            Caption = 'Prod. Order No. (Sub)';            DataClassification = CustomerContent;            Editable = false;            TableRelation = "Production Order"."No." where(Status = const(Released));        }        field(20544; "Subc. Prod. Order Line No."; Integer)        {            Caption = 'Prod. Order Line No. (Sub)';            DataClassification = CustomerContent;            Editable = false;            TableRelation = "Prod. Order Line"."Line No." where(Status = const(Released),                                                                 "Prod. Order No." = field("Subc. Prod. Order No."));        }        field(20545; "Subc. Routing No."; Code[20])        {            Caption = 'Routing No. (Sub)';            DataClassification = CustomerContent;            Editable = false;            TableRelation = "Routing Header";        }        field(20546; "Subc. Rtng Reference No."; Integer)        {            Caption = 'Routing Reference No. (Sub)';            DataClassification = CustomerContent;            Editable = false;        }        field(20547; "Subc. Operation No."; Code[10])        {            Caption = 'Operation No. (Sub)';            DataClassification = CustomerContent;            Editable = false;            TableRelation = "Prod. Order Routing Line"."Operation No." where(Status = const(Released),                                                                              "Prod. Order No." = field("Prod. Order No."),                                                                              "Routing No." = field("Subc. Routing No."),                                                                              "Routing Reference No." = field("Subc. Rtng Reference No."));        }        field(20548; "Subc. Work Center No."; Code[20])        {            Caption = 'Work Center No. (Sub)';            DataClassification = CustomerContent;            Editable = false;            TableRelation = "Work Center";        }    }}