include cost section

This commit is contained in:
Paul Trowbridge 2025-09-22 17:23:55 -04:00
parent 81736b51b1
commit 42f8d1b777

View File

@ -471,6 +471,21 @@ BEGIN
panel.detailLevel, panel.detailLevel,
JSON_QUERY(panel.details) AS details JSON_QUERY(panel.details) AS details
FROM ( 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 -- History Panel
SELECT SELECT
'History' AS label, 'History' AS label,