Commit 206833ea authored by ppatro's avatar ppatro

pallet no validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93713 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 67790e38
......@@ -334,6 +334,31 @@ public class PalletNoIC extends ValidatorEJB implements PalletNoICLocal, PalletN
pstmt.close();
pstmt = null;
//Changed by sumit on 21/01/13 adding validation to prevent doc transfer in case of M-PACK not done end
//Changed by Sankara on 03/oct/13 adding validation to prevent doc transfer in case of pending/aborted picking.start
sql = " SELECT COUNT(*) FROM PICK_ISS_HDR PIH, "
+ " PICK_ISS_DET PH WHERE PIH.PICK_ORDER = PH.PICK_ORDER "
+ " AND PIH.CONFIRMED = ? AND PIH.PICK_ORDER = ?";
pstmt = conn.prepareStatement( sql );
pstmt.setString( 1, "N");
pstmt.setString( 2, pickOrder);
rs = pstmt.executeQuery();
if(rs.next())
{
int countConf = rs.getInt(1);
System.out.println(" Unconfirmed Pick order count["+countConf);
if( countConf > 0)
{
errList.add( "VTPENDPICK" );
errFields.add( childNodeName.toLowerCase() );
}
}
rs.close();
rs = 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
}
}
......
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