parameterize where clause
This commit is contained in:
parent
c85994b606
commit
0a9a56c6c2
@ -179,12 +179,7 @@ target AS (select $$replace_request$$::json def)
|
||||
mseq.m = order_month
|
||||
WHERE
|
||||
-----------------scenario----------------------------
|
||||
--where_clause
|
||||
quota_rep_descr = '30033 - ROBERT NELSON'
|
||||
AND mod_chan = 'DISTRIBUTOR'
|
||||
AND shipto_group = 'KINNEY BONDED'
|
||||
AND "version" = 'b20'
|
||||
AND iter = 'copy'
|
||||
where_clause
|
||||
--probably dont want to include adjustments that have blown away volume and good sources of dating info
|
||||
-----------------additional params-------------------
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
@ -693,12 +688,7 @@ FROM
|
||||
rlarp.osm_fcpool b
|
||||
WHERE
|
||||
-----------------scenario----------------------------
|
||||
--where_clause
|
||||
quota_rep_descr = '30033 - ROBERT NELSON'
|
||||
AND mod_chan = 'DISTRIBUTOR'
|
||||
AND shipto_group = 'KINNEY BONDED'
|
||||
AND "version" = 'b20'
|
||||
AND iter = 'copy'
|
||||
where_clause
|
||||
--probably dont want to include adjustments that have blown away volume and good sources of dating info
|
||||
-----------------additional params-------------------
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
|
Loading…
Reference in New Issue
Block a user