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
|
mseq.m = order_month
|
||||||
WHERE
|
WHERE
|
||||||
-----------------scenario----------------------------
|
-----------------scenario----------------------------
|
||||||
--where_clause
|
where_clause
|
||||||
quota_rep_descr = '30033 - ROBERT NELSON'
|
|
||||||
AND mod_chan = 'DISTRIBUTOR'
|
|
||||||
AND shipto_group = 'KINNEY BONDED'
|
|
||||||
AND "version" = 'b20'
|
|
||||||
AND iter = 'copy'
|
|
||||||
--probably dont want to include adjustments that have blown away volume and good sources of dating info
|
--probably dont want to include adjustments that have blown away volume and good sources of dating info
|
||||||
-----------------additional params-------------------
|
-----------------additional params-------------------
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
@ -693,12 +688,7 @@ FROM
|
|||||||
rlarp.osm_fcpool b
|
rlarp.osm_fcpool b
|
||||||
WHERE
|
WHERE
|
||||||
-----------------scenario----------------------------
|
-----------------scenario----------------------------
|
||||||
--where_clause
|
where_clause
|
||||||
quota_rep_descr = '30033 - ROBERT NELSON'
|
|
||||||
AND mod_chan = 'DISTRIBUTOR'
|
|
||||||
AND shipto_group = 'KINNEY BONDED'
|
|
||||||
AND "version" = 'b20'
|
|
||||||
AND iter = 'copy'
|
|
||||||
--probably dont want to include adjustments that have blown away volume and good sources of dating info
|
--probably dont want to include adjustments that have blown away volume and good sources of dating info
|
||||||
-----------------additional params-------------------
|
-----------------additional params-------------------
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
Loading…
Reference in New Issue
Block a user