From 2471509525f2a09077bd6f2aa930ff051e65f44f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:57:01 +0000 Subject: [PATCH 1/2] Initial plan From 00ae961837b9e15ea18b726d72daccdb0ba098f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Jun 2026 15:02:46 +0000 Subject: [PATCH 2/2] Fix PVS Case List page extension: use addlast(Control1) to target the repeater --- Prototyping/PVSCase.TableExt.al | 24 ++++++++++++++++++++++++ Prototyping/PVSCaseList.PageExt.al | 21 +++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 Prototyping/PVSCase.TableExt.al create mode 100644 Prototyping/PVSCaseList.PageExt.al diff --git a/Prototyping/PVSCase.TableExt.al b/Prototyping/PVSCase.TableExt.al new file mode 100644 index 0000000..5e5007c --- /dev/null +++ b/Prototyping/PVSCase.TableExt.al @@ -0,0 +1,24 @@ +tableextension 50100 "PVS Case Ext. Pricing" extends "PVS Case" +{ + fields + { + field(50100; "Quoted Price"; Decimal) + { + Caption = 'Quoted Price'; + Editable = false; + FieldClass = FlowField; + CalcFormula = sum("PVS Job"."Quoted Price" where("Case ID" = field("Case ID"), + Active = const(true), + Status = const(Quote))); + } + field(50101; "Ordered Price"; Decimal) + { + Caption = 'Ordered Price'; + Editable = false; + FieldClass = FlowField; + CalcFormula = sum("PVS Job"."Quoted Price" where("Case ID" = field("Case ID"), + Active = const(true), + Status = const(Order))); + } + } +} diff --git a/Prototyping/PVSCaseList.PageExt.al b/Prototyping/PVSCaseList.PageExt.al new file mode 100644 index 0000000..13470dc --- /dev/null +++ b/Prototyping/PVSCaseList.PageExt.al @@ -0,0 +1,21 @@ +pageextension 50101 "PVS Case List Ext. Pricing" extends "PVS Case List" +{ + layout + { + addlast(Control1) + { + field("Quoted Price"; Rec."Quoted Price") + { + ApplicationArea = All; + Caption = 'Quoted Price'; + ToolTip = 'Specifies the sum of active PVS Job prices for this case where the status is Quote.'; + } + field("Ordered Price"; Rec."Ordered Price") + { + ApplicationArea = All; + Caption = 'Ordered Price'; + ToolTip = 'Specifies the sum of active PVS Job prices for this case where the status is Order.'; + } + } + } +}