Page 6083 Serv. Price Adjmt. Detail, source in 29
Source29
src/Layers/W1/BaseApp/Service/Pricing/ServPriceAdjmtDetail.Page.al99 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.Pricing;
page 6083 "Serv. Price Adjmt. Detail"
{
Caption = 'Serv. Price Adjmt. Detail';
DataCaptionExpression = FormCaption();
PageType = List;
SourceTable = "Serv. Price Adjustment Detail";
layout
{
area(content)
{
repeater(Control1)
{
ShowCaption = false;
field("Serv. Price Adjmt. Gr. Code"; Rec."Serv. Price Adjmt. Gr. Code")
{
ApplicationArea = Service;
Visible = ServPriceAdjmtGrCodeVisible;
}
field(Type; Rec.Type)
{
ApplicationArea = Service;
}
field("No."; Rec."No.")
{
ApplicationArea = Service;
}
field("Work Type"; Rec."Work Type")
{
ApplicationArea = Service;
}
field("Gen. Prod. Posting Group"; Rec."Gen. Prod. Posting Group")
{
ApplicationArea = Service;
}
field(Description; Rec.Description)
{
ApplicationArea = Service;
}
}
}
area(factboxes)
{
systempart(Control1900383207; Links)
{
ApplicationArea = RecordLinks;
Visible = false;
}
systempart(Control1905767507; Notes)
{
ApplicationArea = Notes;
Visible = false;
}
}
}
actions
{
}
trigger OnInit()
begin
ServPriceAdjmtGrCodeVisible := true;
end;
trigger OnOpenPage()
var
ServPriceAdjmtGroup: Record "Service Price Adjustment Group";
ShowColumn: Boolean;
begin
ShowColumn := true;
if Rec.GetFilter("Serv. Price Adjmt. Gr. Code") <> '' then
if ServPriceAdjmtGroup.Get(Rec."Serv. Price Adjmt. Gr. Code") then
ShowColumn := false
else
Rec.Reset();
ServPriceAdjmtGrCodeVisible := ShowColumn;
end;
var
ServPriceAdjmtGrCodeVisible: Boolean;
local procedure FormCaption(): Text[180]
var
ServPriceAdjmtGrp: Record "Service Price Adjustment Group";
begin
if Rec.GetFilter("Serv. Price Adjmt. Gr. Code") <> '' then
if ServPriceAdjmtGrp.Get(Rec."Serv. Price Adjmt. Gr. Code") then
exit(StrSubstNo('%1 %2', Rec."Serv. Price Adjmt. Gr. Code", ServPriceAdjmtGrp.Description));
end;
}