Table extension 20410 Qlty. Direct Trans. Header
src/Apps/W1/Quality Management/app/src/Integration/Inventory/Transfer/History/QltyDirectTransHeader.TableExt.al55 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.QualityManagement.Integration.Inventory.Transfer.History;using Microsoft.Inventory.Transfer;using Microsoft.QualityManagement.Document;/// <summary>/// Used to help map the transfer inspection document was created as a result of a quality inspection./// </summary>tableextension 20410 "Qlty. Direct Trans. Header" extends "Direct Trans. Header"{ fields { field(20400; "Qlty. Inspection No."; Code[20]) { Caption = 'Quality Inspection No.'; ToolTip = 'Specifies the related quality inspection.'; DataClassification = CustomerContent; TableRelation = "Qlty. Inspection Header"."No."; } field(20401; "Qlty. Re-inspection No."; Integer) { Caption = 'Quality Re-inspection No.'; ToolTip = 'Specifies the related quality re-inspection.'; DataClassification = CustomerContent; TableRelation = "Qlty. Inspection Header"."Re-inspection No." where("No." = field("Qlty. Inspection No.")); BlankZero = true; } } keys { key(Key20400; "Qlty. Inspection No.", "Qlty. Re-inspection No.") { } } /// <summary> /// Opens the quality inspection associated with the posted direct transfer when it exists. /// </summary> procedure QltyShowRelatedInspection() var QltyInspectionHeader: Record "Qlty. Inspection Header"; QltyInspection: Page "Qlty. Inspection"; begin if QltyInspectionHeader.Get(Rec."Qlty. Inspection No.", Rec."Qlty. Re-inspection No.") then begin QltyInspection.SetRecord(QltyInspectionHeader); QltyInspection.Run(); end; end;}