|
@@ -115,7 +115,7 @@
|
115
|
,ptcl.podr_amt as 'pchOdrDtlInfo.podr_amt', date_format(base.dlv_req_dt,'%Y.%m.%d') as dlv_req_dt
|
115
|
,ptcl.podr_amt as 'pchOdrDtlInfo.podr_amt', date_format(base.dlv_req_dt,'%Y.%m.%d') as dlv_req_dt
|
116
|
, base.shmt_whs_id, base.shmt_location, ptcl.pch_req_unq_no as 'pchOdrDtlInfo.pch_req_unq_no' , ptcl.pch_req_dtl_no as 'pchOdrDtlInfo.pch_req_dtl_no'
|
116
|
, base.shmt_whs_id, base.shmt_location, ptcl.pch_req_unq_no as 'pchOdrDtlInfo.pch_req_unq_no' , ptcl.pch_req_dtl_no as 'pchOdrDtlInfo.pch_req_dtl_no'
|
117
|
, base.store_id , base.podr_mgr_nm , base.podr_mgr_tel_no
|
117
|
, base.store_id , base.podr_mgr_nm , base.podr_mgr_tel_no
|
118
|
- , fn_get_telno((select tel_no from store_base_info where store_id = base.store_id )) as deli_tel_no
|
|
|
|
|
118
|
+ , nvl(fn_get_telno((select mgr_tel_no from whs_mgnt_base_info where brand_id = base.brand_id and whs_id = base.whs_id)),' ') as deli_tel_no
|
119
|
, date_format(base.podr_dt,'%Y%m%d') as podr_dt
|
119
|
, date_format(base.podr_dt,'%Y%m%d') as podr_dt
|
120
|
, base.spply_id, fn_spply_nm(base.spply_id) as spply_nm
|
120
|
, base.spply_id, fn_spply_nm(base.spply_id) as spply_nm
|
121
|
from pch_odr_base_info base
|
121
|
from pch_odr_base_info base
|