Commit 5443e98e authored by cpatil's avatar cpatil

updating item_code validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91799 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8cb727a2
......@@ -309,7 +309,7 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
rs = pstmt.executeQuery();
*/
sql = " SELECT COUNT(*) FROM item WHERE item_code = ?";
sql = " SELECT COUNT(*) FROM STOCK WHERE item_code = ?"; //modify by cpatil as per requirment. on 10-AUG-12 " stck instead of item "
pstmt = conn.prepareStatement( sql );
pstmt.setString(1,itemCode);
rs = pstmt.executeQuery();
......@@ -322,7 +322,8 @@ public class InvHoldIC extends ValidatorEJB implements InvHoldICLocal , InvHoldI
if( cnt == 0 )
{
System.out.println(" ====> Item Code Invalid <==== ");
errCode = "VMINVITEM";
errCode="VMINVITMST";
//errCode = "VMINVITEM";
}
rs.close();
rs = null;
......
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