filter out goofy ship dates

This commit is contained in:
Trowbridge 2019-03-06 09:18:24 -05:00
parent 8221fccf6c
commit 2550e6746e
3 changed files with 8 additions and 0 deletions

View File

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

View File

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

View File

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