add group descriptions
This commit is contained in:
parent
e41f12ef7e
commit
c5f8d335bb
@ -640,12 +640,18 @@ SELECT
|
||||
,b.billto_group
|
||||
,b.ship_cust_descr
|
||||
,b.shipto_group
|
||||
,b.majg_descr
|
||||
,b.ming_descr
|
||||
,b.majs_descr
|
||||
,b.mins_descr
|
||||
,b.mod_chan
|
||||
,b.mod_chansub
|
||||
,COALESCE(m.avmajg,p.awmajg)||COALESCE(' - '||BQDES,'') majg_descr
|
||||
,COALESCE(m.avming,p.awming)||COALESCE(' - '||BRDES,'') ming_descr
|
||||
,COALESCE(m.avmajs,p.awmajs)||COALESCE(' - '||SJ.BSDES1,'') majs_descr
|
||||
,COALESCE(m.avmins,p.awmins)||COALESCE(' - '||SI.BSDES1,'') mins_descr
|
||||
,CASE COALESCE(SEG.SEGM,'Other')
|
||||
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.director_descr
|
||||
,b.value_loc
|
||||
|
Loading…
Reference in New Issue
Block a user