From db13f3d38cbc89fff3dbdd4928f76da32a55624a Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Fri, 14 Feb 2020 15:52:16 -0500 Subject: [PATCH] routes that make adjustments need to return comment info --- route_sql/new_basket.sql | 6 ++++++ route_sql/scale_pd.sql | 6 ++++++ route_sql/scale_vd.sql | 6 ++++++ route_sql/scale_vupd.sql | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index a544a1c..94bb824 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -452,6 +452,9 @@ FROM ,promo ,version ,iter + ,logid + ,comment + ,module --------values------------------------- ,sum(value_loc) value_loc ,sum(value_usd) value_usd @@ -492,5 +495,8 @@ FROM ,promo ,version ,iter + ,logid + ,comment + ,module ) SELECT json_agg(row_to_json(insagg)) x from insagg \ No newline at end of file diff --git a/route_sql/scale_pd.sql b/route_sql/scale_pd.sql index 8144bee..442020e 100644 --- a/route_sql/scale_pd.sql +++ b/route_sql/scale_pd.sql @@ -213,6 +213,9 @@ target AS (select target_increment incr) ,promo ,version ,iter + ,logid + ,comment + ,module --------values------------------------- ,sum(value_loc) value_loc ,sum(value_usd) value_usd @@ -253,5 +256,8 @@ target AS (select target_increment incr) ,promo ,version ,iter + ,logid + ,comment + ,module ) SELECT json_agg(row_to_json(insagg)) x from insagg diff --git a/route_sql/scale_vd.sql b/route_sql/scale_vd.sql index 0710745..db88757 100644 --- a/route_sql/scale_vd.sql +++ b/route_sql/scale_vd.sql @@ -240,6 +240,9 @@ FROM ,promo ,version ,iter + ,logid + ,comment + ,module --------values------------------------- ,sum(value_loc) value_loc ,sum(value_usd) value_usd @@ -280,5 +283,8 @@ FROM ,promo ,version ,iter + ,logid + ,comment + ,module ) SELECT json_agg(row_to_json(insagg)) x from insagg \ No newline at end of file diff --git a/route_sql/scale_vupd.sql b/route_sql/scale_vupd.sql index b2a0e6f..9641bab 100644 --- a/route_sql/scale_vupd.sql +++ b/route_sql/scale_vupd.sql @@ -320,6 +320,9 @@ FROM ,promo ,version ,iter + ,logid + ,comment + ,module --------values------------------------- ,sum(value_loc) value_loc ,sum(value_usd) value_usd @@ -360,5 +363,8 @@ FROM ,promo ,version ,iter + ,logid + ,comment + ,module ) SELECT json_agg(row_to_json(insagg)) x from insagg