From 42f8d1b7778fb074187489d02ca41b44ebccb9dc Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 22 Sep 2025 17:23:55 -0400 Subject: [PATCH] include cost section --- procs/single_price_call.ms.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/procs/single_price_call.ms.sql b/procs/single_price_call.ms.sql index e8a058a..c9b56d5 100644 --- a/procs/single_price_call.ms.sql +++ b/procs/single_price_call.ms.sql @@ -471,6 +471,21 @@ BEGIN panel.detailLevel, JSON_QUERY(panel.details) AS details FROM ( + -- Cost + SELECT + 'Cost' AS label, + 5 AS detailLevel, + ( + SELECT + 'Current Std' AS label, + 5 AS detailLevel, + COALESCE(q.listprice,0) AS value, + 'currency' AS type, + '' AS note + FOR JSON PATH + ) AS details + + UNION ALL -- History Panel SELECT 'History' AS label,