|
@@ -363,14 +363,20 @@
|
363
|
363
|
, info.spply_id, info.spply_nm, info.dlv_st_cd, fn_code_nm(upper('dlv_st_cd'), info.dlv_st_cd) as dlv_st_nm
|
364
|
364
|
, info.whs_id, info.location, fn_whs_nm(info.brand_id, info.whs_id) as whs_nm
|
365
|
365
|
, fn_whs_location_nm(info.brand_id, info.whs_id, info.location) as location_nm
|
366
|
|
- , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt, date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
|
367
|
|
- , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_req_dt, date_format(info.dlv_sch_dt, '%y.%m.%d') as dlv_sch_dt
|
|
366
|
+ , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt
|
|
367
|
+ , date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
|
|
368
|
+ , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_reg_dt
|
|
369
|
+ , date_format(info.dlv_sch_dt, '%y.%m.%d') as dlv_sch_dt
|
368
|
370
|
, date_format(info.dlv_cmplt_dt, '%Y.%m.%d') as dlv_cmplt_dt
|
369
|
371
|
, ptcl.item_id as 'deliDtlMgntInfo.item_id', ptcl.item_nm as 'deliDtlMgntInfo.item_nm'
|
370
|
372
|
, ptcl.podr_qty as 'deliDtlMgntInfo.podr_qty', ptcl.dlv_qty as 'deliDtlMgntInfo.dlv_qty'
|
371
|
373
|
, ptcl.unit as 'deliDtlMgntInfo.unit', ptcl.unit_amt as 'deliDtlMgntInfo.unit_amt'
|
372
|
|
- , ptcl.pch_podr_unq_no as 'deliDtlMgntInfo.pch_podr_unq_no' , ptcl.pch_podr_dtl_no as 'deliDtlMgntInfo.pch_podr_dtl_no'
|
373
|
|
- , info.dlv_mgr_nm , info.dlv_mgr_mbl_no
|
|
374
|
+ , ptcl.pch_podr_unq_no as 'deliDtlMgntInfo.pch_podr_unq_no'
|
|
375
|
+ , ptcl.pch_podr_dtl_no as 'deliDtlMgntInfo.pch_podr_dtl_no'
|
|
376
|
+ , info.dlv_mgr_nm
|
|
377
|
+ , IFNULL(info.dlv_mgr_mbl_no, info.DLV_MGR_TEL_NO) AS dlv_mgr_tel_no
|
|
378
|
+ , info.whs_dvsn /* 창고구분 */
|
|
379
|
+ , fn_code_nm(upper('whs_dvsn'), info.whs_dvsn) as whs_dvsn_nm /* 창고구분 명 */
|
374
|
380
|
from deli_info_mgnt info
|
375
|
381
|
, deli_dtl_ptcl ptcl
|
376
|
382
|
where 1 = 1
|
|
@@ -458,8 +464,10 @@
|
458
|
464
|
, info.spply_id, info.spply_nm, info.dlv_st_cd, fn_code_nm(upper('dlv_st_cd'), info.dlv_st_cd) as dlv_st_nm
|
459
|
465
|
, info.whs_id, info.location, fn_whs_nm(info.brand_id, info.whs_id) as whs_nm
|
460
|
466
|
, fn_whs_location_nm(info.brand_id, info.whs_id, info.location) as location_nm
|
461
|
|
- , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt, date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
|
462
|
|
- , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_req_dt, date_format(info.dlv_sch_dt, '%Y.%m.%d') as dlv_sch_dt
|
|
467
|
+ , date_format(info.podr_reg_dt, '%Y.%m.%d') as podr_reg_dt
|
|
468
|
+ , date_format(info.dlv_req_dt, '%Y.%m.%d') as dlv_req_dt
|
|
469
|
+ , date_format(info.dlv_reg_dt, '%Y.%m.%d') as dlv_reg_dt
|
|
470
|
+ , date_format(info.dlv_sch_dt, '%Y.%m.%d') as dlv_sch_dt
|
463
|
471
|
, date_format(info.dlv_cmplt_dt, '%Y.%m.%d') as dlv_cmplt_dt
|
464
|
472
|
, ptcl.item_id as 'deliDtlMgntInfo.item_id', ptcl.item_nm as 'deliDtlMgntInfo.item_nm'
|
465
|
473
|
, ptcl.podr_qty as 'deliDtlMgntInfo.podr_qty', ptcl.dlv_qty as 'deliDtlMgntInfo.dlv_qty'
|