diff --git a/route_sql/addmonth_vupd.sql b/route_sql/addmonth_vupd.sql index 1f48044..1994df1 100644 --- a/route_sql/addmonth_vupd.sql +++ b/route_sql/addmonth_vupd.sql @@ -334,6 +334,7 @@ SELECT ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM basemix b CROSS JOIN vscale s @@ -418,10 +419,11 @@ SELECT ,b.ship_month ,b.ship_season ,'replace_version' "version" - ,'replace_source'||' volume' iter + ,'replace_source'||' price' iter ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM volume b CROSS JOIN pscale p diff --git a/route_sql/build/build_fcpool.sql b/route_sql/build/build_fcpool.sql index 243edf3..3c30798 100644 --- a/route_sql/build/build_fcpool.sql +++ b/route_sql/build/build_fcpool.sql @@ -108,6 +108,7 @@ SELECT ,null::int logid ,''::text tag ,''::text "comment" + ,''::text module FROM rlarp.osmf_dev o LEFT OUTER JOIN lgdat.cust bc ON diff --git a/route_sql/list_changes.sql b/route_sql/list_changes.sql index 8551431..d710609 100644 --- a/route_sql/list_changes.sql +++ b/route_sql/list_changes.sql @@ -5,6 +5,7 @@ SELECT jsonb_path_query_first(l.doc,'$.scenario.quota_rep_descr')->>0 quota_rep_descr, to_char((l.doc->>'stamp')::timestamptz,'YYYY-MM-DD HH:MI:SS') "stamp", l.doc->>'tag' "tag", + l.doc->>'message' "comment", jsonb_pretty(l.doc) def, l.id FROM @@ -18,6 +19,7 @@ SELECT ,list.quota_rep_descr ,list.stamp ,list.tag + ,list.comment ,list.def ,list.id ,to_char(round(sum(value_usd),2),'$999,999,999D00') sales @@ -30,6 +32,7 @@ group BY ,list.quota_rep_descr ,list.stamp ,list.tag + ,list.comment ,list.def ,list.id ) diff --git a/route_sql/new_basket.sql b/route_sql/new_basket.sql index cd52d18..c22df8f 100644 --- a/route_sql/new_basket.sql +++ b/route_sql/new_basket.sql @@ -334,6 +334,7 @@ SELECT ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM basemix b CROSS JOIN log diff --git a/route_sql/scale_pd.sql b/route_sql/scale_pd.sql index a835d58..1804a70 100644 --- a/route_sql/scale_pd.sql +++ b/route_sql/scale_pd.sql @@ -169,6 +169,7 @@ target AS (select target_increment incr) ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM basemix b CROSS JOIN scale s diff --git a/route_sql/scale_vd.sql b/route_sql/scale_vd.sql index 866006a..347496e 100644 --- a/route_sql/scale_vd.sql +++ b/route_sql/scale_vd.sql @@ -198,6 +198,7 @@ target AS (select incr_qty qincr) ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM basemix b CROSS JOIN scale s diff --git a/route_sql/scale_vupd.sql b/route_sql/scale_vupd.sql index 5e95d83..ab9af26 100644 --- a/route_sql/scale_vupd.sql +++ b/route_sql/scale_vupd.sql @@ -197,6 +197,7 @@ target AS (select target_vol vincr, target_prc pincr) ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM basemix b CROSS JOIN vscale s @@ -276,6 +277,7 @@ FROM ,log.id ,COALESCE(log.doc->>'tag','') "tag" ,log.doc->>'message' "comment" + ,log.doc->>'module' module FROM volume b CROSS JOIN pscale s