Page 5954 Service Item Substitutions, source in 29
Source29
src/Layers/W1/BaseApp/Service/Item/ServiceItemSubstitutions.Page.al124 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.Service.Item;
using Microsoft.Inventory.Item.Substitution;
page 5954 "Service Item Substitutions"
{
Caption = 'Service Item Substitutions';
DataCaptionFields = Interchangeable;
DelayedInsert = true;
Editable = false;
PageType = List;
SourceTable = "Item Substitution";
layout
{
area(content)
{
repeater(Control1)
{
ShowCaption = false;
field("Substitute Type"; Rec."Substitute Type")
{
ApplicationArea = Service;
ToolTip = 'Specifies the type of the item that can be used as a substitute.';
}
field("Substitute No."; Rec."Substitute No.")
{
ApplicationArea = Service;
ToolTip = 'Specifies the number of the item that can be used as a substitute.';
}
field("Substitute Variant Code"; Rec."Substitute Variant Code")
{
ApplicationArea = Planning;
ToolTip = 'Specifies the code of the variant that can be used as a substitute.';
Visible = false;
}
field(Description; Rec.Description)
{
ApplicationArea = Service;
ToolTip = 'Specifies the description of the substitute item.';
}
field("Sub. Item No."; Rec."Sub. Item No.")
{
ApplicationArea = Service;
ToolTip = 'Specifies the item number of the catalog substitute item.';
}
field(Condition; Rec.Condition)
{
ApplicationArea = Service;
ToolTip = 'Specifies that a condition exists for this substitution.';
}
field(Inventory; Rec.Inventory)
{
ApplicationArea = Service;
ToolTip = 'Specifies how many units (such as pieces, boxes, or cans) of the item are available.';
}
field("Relations Level"; Rec."Relations Level")
{
ApplicationArea = Service;
ToolTip = 'Specifies the priority level of this substitute item.';
}
}
}
area(factboxes)
{
systempart(Control1900383207; Links)
{
ApplicationArea = RecordLinks;
Visible = false;
}
systempart(Control1905767507; Notes)
{
ApplicationArea = Notes;
Visible = false;
}
}
}
actions
{
area(processing)
{
action("&Condition")
{
ApplicationArea = Service;
Caption = '&Condition';
Image = ViewComments;
RunObject = Page "Sub. Conditions";
RunPageLink = Type = field(Type),
"No." = field("No."),
"Variant Code" = field("Variant Code"),
"Substitute Type" = field("Substitute Type"),
"Substitute No." = field("Substitute No."),
"Substitute Variant Code" = field("Substitute Variant Code");
ToolTip = 'Specify a condition for the item substitution, which is for information only and does not affect the item substitution.';
}
}
area(Promoted)
{
group(Category_Process)
{
Caption = 'Process';
actionref("&Condition_Promoted"; "&Condition")
{
}
}
}
}
trigger OnAfterGetRecord()
begin
if (Rec."Substitute Type" <> Rec."Substitute Type"::"Nonstock Item") and
(Rec."Sub. Item No." <> '')
then
Clear(Rec."Sub. Item No.");
end;
}