filter out goofy ship dates
This commit is contained in:
parent
8221fccf6c
commit
2550e6746e
4
index.js
4
index.js
@ -395,6 +395,7 @@ server.get('/addmonth_v', bodyParser.json(), function (req, res) {
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
promo
|
||||
,terms
|
||||
@ -581,6 +582,7 @@ server.get('/addmonth_v', bodyParser.json(), function (req, res) {
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
plnt ---master data
|
||||
,terms
|
||||
@ -951,6 +953,7 @@ server.get('/addmonth_vp', bodyParser.json(), function (req, res) {
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
promo
|
||||
,terms
|
||||
@ -1136,6 +1139,7 @@ server.get('/addmonth_vp', bodyParser.json(), function (req, res) {
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
plnt ---master data
|
||||
,terms
|
||||
|
@ -65,6 +65,7 @@ target AS (select 50000 incr)
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
promo
|
||||
,terms
|
||||
@ -254,6 +255,7 @@ SELECT
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
plnt ---master data
|
||||
,terms
|
||||
|
@ -68,6 +68,7 @@ target AS (select -50000 vincr, 20000 pincr)
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
promo
|
||||
,terms
|
||||
@ -257,6 +258,7 @@ SELECT
|
||||
AND version = 'b20'
|
||||
AND iter = 'copy'
|
||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||
AND adj_orderdate <= adj_shipdate
|
||||
GROUP BY
|
||||
plnt ---master data
|
||||
,terms
|
||||
|
Loading…
Reference in New Issue
Block a user