add group descriptions

This commit is contained in:
Trowbridge 2019-03-21 14:22:35 -04:00
parent e41f12ef7e
commit c5f8d335bb

View File

@ -640,12 +640,18 @@ SELECT
,b.billto_group ,b.billto_group
,b.ship_cust_descr ,b.ship_cust_descr
,b.shipto_group ,b.shipto_group
,b.majg_descr ,COALESCE(m.avmajg,p.awmajg)||COALESCE(' - '||BQDES,'') majg_descr
,b.ming_descr ,COALESCE(m.avming,p.awming)||COALESCE(' - '||BRDES,'') ming_descr
,b.majs_descr ,COALESCE(m.avmajs,p.awmajs)||COALESCE(' - '||SJ.BSDES1,'') majs_descr
,b.mins_descr ,COALESCE(m.avmins,p.awmins)||COALESCE(' - '||SI.BSDES1,'') mins_descr
,b.mod_chan ,CASE COALESCE(SEG.SEGM,'Other')
,b.mod_chansub WHEN 'Retail' THEN L.RETAIL
ELSE b.CHAN
END mod_chan
,CASE COALESCE(SEG.SEGM,'Other')
WHEN 'Retail' THEN L.RETAILSUB
ELSE ''
END mod_chansub
,b.quota_rep_descr ,b.quota_rep_descr
,b.director_descr ,b.director_descr
,b.value_loc ,b.value_loc