From b05d68f8ec7d000470fcc0800344cf0bca65b575 Mon Sep 17 00:00:00 2001 From: Trowbridge Date: Wed, 20 Mar 2019 01:31:51 -0400 Subject: [PATCH] dont sum up diext and discounts --- route_sql/addmonth_vd.sql | 4 ++-- route_sql/addmonth_vupd.sql | 4 ++-- route_sql/scale_pd.sql | 4 ++-- route_sql/scale_vd.sql | 4 ++-- route_sql/scale_vupd.sql | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/route_sql/addmonth_vd.sql b/route_sql/addmonth_vd.sql index 1277fbb..7588bcb 100644 --- a/route_sql/addmonth_vd.sql +++ b/route_sql/addmonth_vd.sql @@ -151,8 +151,8 @@ SELECT ,terms ,''::text custpo --0 ,'I' dhincr --0 - ,sum(diext) diext - ,sum(ditdis) ditdis + ,null::numeric diext + ,null::numeric ditdis ,null::date dcodat --calculated date mix ,null::date ddqdat --calculated date mix ,null::date dcmdat --calculated date mix diff --git a/route_sql/addmonth_vupd.sql b/route_sql/addmonth_vupd.sql index 75918c2..a876885 100644 --- a/route_sql/addmonth_vupd.sql +++ b/route_sql/addmonth_vupd.sql @@ -145,8 +145,8 @@ SELECT ,terms ,''::text custpo --0 ,'I' dhincr --0 - ,sum(diext) diext - ,sum(ditdis) ditdis + ,null::numeric diext + ,null::numeric ditdis ,null::date dcodat --calculated date mix ,null::date ddqdat --calculated date mix ,null::date dcmdat --calculated date mix diff --git a/route_sql/scale_pd.sql b/route_sql/scale_pd.sql index 81145bc..0c6110e 100644 --- a/route_sql/scale_pd.sql +++ b/route_sql/scale_pd.sql @@ -14,8 +14,8 @@ SELECT ,terms ,''::text custpo --0 ,'I' dhincr --0 - ,sum(diext) diext - ,sum(ditdis) ditdis + ,null::numeric diext + ,null::numeric ditdis ,null::date dcodat --calculated date mix ,null::date ddqdat --calculated date mix ,null::date dcmdat --calculated date mix diff --git a/route_sql/scale_vd.sql b/route_sql/scale_vd.sql index 8148cf3..fbaa219 100644 --- a/route_sql/scale_vd.sql +++ b/route_sql/scale_vd.sql @@ -14,8 +14,8 @@ SELECT ,terms ,''::text custpo --0 ,'I' dhincr --0 - ,sum(diext) diext - ,sum(ditdis) ditdis + ,null::numeric diext + ,null::numeric ditdis ,null::date dcodat --calculated date mix ,null::date ddqdat --calculated date mix ,null::date dcmdat --calculated date mix diff --git a/route_sql/scale_vupd.sql b/route_sql/scale_vupd.sql index faddaa9..16e73cc 100644 --- a/route_sql/scale_vupd.sql +++ b/route_sql/scale_vupd.sql @@ -14,8 +14,8 @@ target AS (select target_vol vincr, target_prc pincr) ,terms ,''::text custpo --0 ,'I' dhincr --0 - ,sum(diext) diext - ,sum(ditdis) ditdis + ,null::numeric diext + ,null::numeric ditdis ,null::date dcodat --calculated date mix ,null::date ddqdat --calculated date mix ,null::date dcmdat --calculated date mix