Commit 43d470be authored by ppatro's avatar ppatro

DOCT RANS LOGIC IF PENDING TRANSFER STATUS


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93716 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 10daa8ca
...@@ -735,6 +735,33 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT ...@@ -735,6 +735,33 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
} }
pstmt.close();pstmt = null; pstmt.close();pstmt = null;
//Changed by Sankara on 03/oct/13 adding validation to prevent doc transfer in case of pending/aborted picking.start
int countConf = 0;
sql = " SELECT COUNT(*) FROM PICK_ISS_HDR PIH, PICK_ISS_DET PH WHERE "
+" PIH.PICK_ORDER = PH.PICK_ORDER AND PH.TRAN_ID = PIH.TRAN_ID AND PIH.CONFIRMED = ? "
+" AND PIH.PICK_ORDER = ? AND PICK_TYPE IN ('A','M') AND PIH.TRF_STATUS IS NULL ";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, "Y");
pstmt.setString( 2, pickOrder);
rs = pstmt.executeQuery();
if(rs.next())
{
countConf = rs.getInt(1);
System.out.println(" Pending Transfer Count["+countConf);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( countConf > 0)
{
return errString = "";
}
//Changed by Sankara on 03/oct/13 adding validation to prevent doc transfer in case of pending/aborted picking.start
//Changed by sumit on 30/08/12 for updating wave_status start. //Changed by sumit on 30/08/12 for updating wave_status start.
//Changed by sumit on 21/01/13 for updating wave_status for M-PACK task start //Changed by sumit on 21/01/13 for updating wave_status for M-PACK task start
System.out.println(" ** pick_type ["+pickType+"]"); System.out.println(" ** pick_type ["+pickType+"]");
......
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