Commit 7c5cc568 authored by msharma's avatar msharma

Source is received from sun issue was two lines picked

and another line item deallocated from pick order , wave task status not
getting updated as "Y".
And also 'TASK STATUS' are 'Created' not 'Held' when order is 'Confirmed'".


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95612 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ac4ce3f6
......@@ -3148,7 +3148,9 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
}
//changed by sumit on 01/apr/13 to update status of wave_task_det if one line scanned and another line deallocated start.
if("C".equalsIgnoreCase(pickType))
//changed by Dhanraj 10-JUL-14 For Status confirmed problem.
//if("C".equalsIgnoreCase(pickType)
if(("C".equalsIgnoreCase(pickType) || "M".equalsIgnoreCase(pickType)) && update == 0)
{
sql = "SELECT PICK_ORDER, LINE_NO FROM PICK_ORD_DET WHERE PICK_ORDER = ? " +
" AND (QUANTITY - CASE WHEN DEALLOC_QTY IS NULL THEN 0 ELSE DEALLOC_QTY END ) > 0 ";
......@@ -3211,6 +3213,20 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
updateWaveStatusTasks(refId, "P", conn);
System.out.println(refId+ " WAVE_TASK_DET is updated susessfully ");
}
//Changed by Dhanraj START 10-JUL-14 (Pragyan) FOR Task Status CREATED not HELD when order id confirmed(Y).
if("M".equalsIgnoreCase(pickType))
{
sql = "UPDATE WAVE_TASK_DET SET WAVE_STATUS = 'C' WHERE REF_ID IN (SELECT TRAN_ID FROM PACK_HDR WHERE PICK_ORDER = ? ) AND STATUS = 'N'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refId);
update = pstmt.executeUpdate();
pstmt.close(); pstmt = null;
if(update > 0 )
{
System.out.println(refId+ " WAVE_TASK_DET is updated susessfully ");
}
}
//Dhanraj 10-JUL-14 END
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment