add module back in

This commit is contained in:
Trowbridge 2020-02-18 17:10:49 -05:00
parent 69346646bd
commit cbc2caa41d
7 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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
)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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