coalesce promo for use in uniqueness test

This commit is contained in:
Paul Trowbridge 2020-02-21 11:30:03 -05:00
parent 00cf371bc5
commit e030cce8b3

View File

@ -55,7 +55,7 @@ gld AS (
,null::jsonb discj
,null::text dhincr
,plnt
,o.promo
,COALESCE(o.promo,'') promo
,null::text return_reas
,o.terms
,null::text custpo
@ -156,7 +156,7 @@ gld AS (
GROUP BY
o.fspr
,plnt
,o.promo
,COALESCE(o.promo,'')
,o.terms
,o.bill_cust
,ship_cust
@ -202,7 +202,7 @@ gld AS (
,null::jsonb discj
,null::text dhincr
,plnt
,o.promo
,COALESCE(o.promo,'') promo
,null::text return_reas
,o.terms
,null::text custpo
@ -296,7 +296,7 @@ gld AS (
GROUP BY
o.fspr
,plnt
,o.promo
,COALESCE(o.promo,'')
,o.terms
,o.bill_cust
,ship_cust
@ -342,7 +342,7 @@ gld AS (
,null::jsonb discj
,null::text dhincr
,plnt
,o.promo
,COALESCE(o.promo,'') promo
,null::text return_reas
,o.terms
,null::text custpo
@ -434,7 +434,7 @@ gld AS (
GROUP BY
o.fspr
,plnt
,o.promo
,COALESCE(o.promo,'')
,o.terms
,o.bill_cust
,ship_cust