From ca28badf9aba525b4ba049581e9943ef31e22381 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:15:55 +0000 Subject: [PATCH 1/2] Initial plan From 5245adaad41408dc631b21ddad3d8058700a8f14 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 18 Jun 2026 14:17:55 +0000 Subject: [PATCH 2/2] Add quoted and ordered price fields to PVS Case List --- Prototyping/PVSCase.TableExt.al | 24 ++++++++++++++++++++++++ Prototyping/PVSCaseList.PageExt.al | 19 +++++++++++++++++++ 2 files changed, 43 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..c2aa446 --- /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"."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"."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..c9d24fd --- /dev/null +++ b/Prototyping/PVSCaseList.PageExt.al @@ -0,0 +1,19 @@ +pageextension 50101 "PVS Case List Ext. Pricing" extends "PVS Case List" +{ + layout + { + addlast(Content) + { + field("Quoted Price"; Rec."Quoted Price") + { + ApplicationArea = All; + 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; + ToolTip = 'Specifies the sum of active PVS Job prices for this case where the status is Order.'; + } + } + } +}