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 version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
promo
|
promo
|
||||||
,terms
|
,terms
|
||||||
@ -581,6 +582,7 @@ server.get('/addmonth_v', bodyParser.json(), function (req, res) {
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
plnt ---master data
|
plnt ---master data
|
||||||
,terms
|
,terms
|
||||||
@ -951,6 +953,7 @@ server.get('/addmonth_vp', bodyParser.json(), function (req, res) {
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
promo
|
promo
|
||||||
,terms
|
,terms
|
||||||
@ -1136,6 +1139,7 @@ server.get('/addmonth_vp', bodyParser.json(), function (req, res) {
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
plnt ---master data
|
plnt ---master data
|
||||||
,terms
|
,terms
|
||||||
|
@ -65,6 +65,7 @@ target AS (select 50000 incr)
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
promo
|
promo
|
||||||
,terms
|
,terms
|
||||||
@ -254,6 +255,7 @@ SELECT
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
plnt ---master data
|
plnt ---master data
|
||||||
,terms
|
,terms
|
||||||
|
@ -68,6 +68,7 @@ target AS (select -50000 vincr, 20000 pincr)
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
promo
|
promo
|
||||||
,terms
|
,terms
|
||||||
@ -257,6 +258,7 @@ SELECT
|
|||||||
AND version = 'b20'
|
AND version = 'b20'
|
||||||
AND iter = 'copy'
|
AND iter = 'copy'
|
||||||
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
AND calc_status||flag <> 'CLOSEDREMAINDER' --exclude short ships when building order adjustments
|
||||||
|
AND adj_orderdate <= adj_shipdate
|
||||||
GROUP BY
|
GROUP BY
|
||||||
plnt ---master data
|
plnt ---master data
|
||||||
,terms
|
,terms
|
||||||
|
Loading…
Reference in New Issue
Block a user