|
@@ -551,13 +551,15 @@
|
551
|
551
|
, dtl.rtn_podr_unq_no as 'pickDtlInfo.rtn_podr_unq_no' , dtl.rtn_podr_dtl_no as 'pickDtlInfo.rtn_podr_dtl_no'
|
552
|
552
|
,dtl.item_id as 'pickDtlInfo.item_id', dtl.item_nm as 'pickDtlInfo.item_nm'
|
553
|
553
|
, dtl.rodr_qty as 'pickDtlInfo.rodr_qty' , dtl.col_req_qty as 'pickDtlInfo.col_req_qty'
|
554
|
|
- , dtl.col_req_qty as 'pickDtlInfo.col_qty', dtl.col_amt as 'pickDtlInfo.col_amt'
|
|
554
|
+ , dtl.col_req_amt as 'pickDtlInfo.col_req_amt'
|
|
555
|
+ /* , null as 'pickDtlInfo.col_qty', null as 'pickDtlInfo.col_amt' */
|
555
|
556
|
, date_format(mgnt.col_sch_dt,'%Y.%m.%d') as col_sch_dt, mgnt.pick_mgr_nm, fn_get_telno(mgnt.pick_mgr_tel_no) as pick_mgr_tel_no
|
556
|
557
|
, mgnt.whs_id as rtn_whs_id , mgnt.location as rtn_location
|
557
|
558
|
, fn_whs_nm(mgnt.brand_id, mgnt.whs_id) as rtn_whs_nm, fn_whs_location_nm(mgnt.brand_id, mgnt.whs_id, mgnt.location) as rtn_location_nm
|
558
|
559
|
, base.whs_id, base.location
|
559
|
560
|
, fn_whs_nm(base.brand_id, base.whs_id) as whs_nm, fn_whs_location_nm(base.brand_id, base.whs_id, base.location) as location_nm
|
560
|
561
|
, mgnt.spply_id, fn_spply_nm(mgnt.spply_id) as spply_nm
|
|
562
|
+ , dtl.unit_amt as 'pickDtlInfo.unit_amt'
|
561
|
563
|
from pick_info_mgnt mgnt
|
562
|
564
|
,pick_dtl_ptcl dtl
|
563
|
565
|
,rtn_odr_dtl_ptcl ptcl
|
|
@@ -655,7 +657,7 @@
|
655
|
657
|
<foreach collection="gridInsertData" item="item" separator=",">
|
656
|
658
|
(#{item.rtnMgntUnqNo}, #{item.brandId}, #{item.storeId}, #{item.itemId}, #{item.itemNm}
|
657
|
659
|
, #{item.whsId}, #{item.location}, #{item.unit}, #{item.unitAmt}, #{item.rtnReqQty}
|
658
|
|
- , #{item.rtnOdrQty}, #{item.colQty}, #{item.colReqQty}, #{item.colReqDt}, #{item.colSchDt}, #{item.colDt}
|
|
660
|
+ , #{item.rtnOdrQty}, #{item.colQty}, #{item.colReqQty}, #{item.colReqDt}, #{item.colSchDt}, date_format(now(),'%Y%m%d')
|
659
|
661
|
, #{item.colCnfmNm}, #{item.colMgrNm}, #{item.colMgrTelNo}, #{item.colMgrEmal}, #{item.colMgrMblNo}
|
660
|
662
|
, #{item.colAmt}, #{item.colAgrYn}, #{item.colCnfmDocFileNo}, #{item.sttlYn}, #{item.spplyId}
|
661
|
663
|
, #{item.spplyNm}, #{item.colPickUnqNo}, #{item.colPickDtlNo}, #{item.colCmdUnqNo}, #{item.colCmdDtlNo}
|
|
@@ -770,8 +772,8 @@
|
770
|
772
|
, mgnt.whs_id as rtn_whs_id, mgnt.location as rtn_location
|
771
|
773
|
, fn_whs_nm(base.brand_id, mgnt.whs_id) as rtn_whs_nm, fn_whs_location_nm(base.brand_id, mgnt.whs_id, mgnt.location) as rtn_location_nm
|
772
|
774
|
, dtl.unit as 'pickDtlInfo.unit' , dtl.unit_amt as 'pickDtlInfo.unit_amt'
|
773
|
|
- , ptcl.rtn_req_qty as 'pickDtlInfo.rtn_req_qty' , dtl.rodr_qty as 'pickDtlInfo.rodr_qty'
|
774
|
|
- , dtl.col_req_qty as 'pickDtlInfo.col_req_qty'
|
|
775
|
+ , nvl(ptcl.rtn_req_qty,0) as 'pickDtlInfo.rtn_req_qty' , nvl(dtl.rodr_qty,0) as 'pickDtlInfo.rodr_qty'
|
|
776
|
+ , nvl(dtl.col_req_qty,0) as 'pickDtlInfo.col_req_qty'
|
775
|
777
|
, date_format(mgnt.col_req_dt,'%Y%m%d') as col_req_dt
|
776
|
778
|
, date_format(mgnt.col_sch_dt,'%Y%m%d') as col_sch_dt
|
777
|
779
|
, date_format(mgnt.col_cmplt_dt,'%Y%m%d') as col_cmplt_dt
|
|
@@ -896,6 +898,7 @@
|
896
|
898
|
set sys_chg_id = #{userId}
|
897
|
899
|
, sys_chg_dttm = now()
|
898
|
900
|
, pick_st_cd = #{item.pickStCd}
|
|
901
|
+ , col_cmplt_dt = case when #{item.pickStCd} in ('PICK1','PICK3') then date_format(now(), '%Y%m%d') else col_cmplt_dt end
|
899
|
902
|
where col_pick_unq_no = #{item.colPickUnqNo}
|
900
|
903
|
</foreach>
|
901
|
904
|
</update>
|