move final guidance to bottom

This commit is contained in:
Paul Trowbridge 2025-10-07 23:36:02 -04:00
parent e930830f27
commit f890ef4ba5

View File

@ -519,22 +519,6 @@ BEGIN
FOR JSON PATH
) AS details
UNION ALL
-- Guidance Panel
SELECT
'Guidance' AS label,
1 AS detailLevel,
(
SELECT
'Price' AS label,
1 AS detailLevel,
COALESCE(q.guidance_price,0) AS value,
'currency' AS type,
q.guidance_reason AS note
FOR JSON PATH
)
UNION ALL
-- History Panel
SELECT
@ -638,6 +622,23 @@ BEGIN
'' AS note
FOR JSON PATH
) AS details
UNION ALL
-- Guidance Panel
SELECT
'Guidance' AS label,
1 AS detailLevel,
(
SELECT
'Price' AS label,
1 AS detailLevel,
COALESCE(q.guidance_price,0) AS value,
'currency' AS type,
q.guidance_reason AS note
FOR JSON PATH
)
) AS panel
FOR JSON PATH
) AS details,