Commit 7f3ee902 authored by vdhoble's avatar vdhoble

code commented for physical cycle count verification


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97047 ce508802-f39f-4f6c-b175-0d175dae99d5
parent df9ed351
...@@ -218,7 +218,8 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo ...@@ -218,7 +218,8 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
pstmt1=null; pstmt1=null;
if(rec > 0) if(rec > 0)
{ {
System.out.println("rec > 1 : qty mismatch found"); System.out.println("rec > 0 : qty mismatch found");
System.out.println("QUANTITY MISMATCH********");
sql="update physcandet set EMP_CODE__VERIFY = ? where tran_id=? and item_code=? and line_no = ? "; sql="update physcandet set EMP_CODE__VERIFY = ? where tran_id=? and item_code=? and line_no = ? ";
pstmt1=conn.prepareStatement(sql); pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,empCode); pstmt1.setString(1,empCode);
...@@ -229,10 +230,11 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo ...@@ -229,10 +230,11 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
pstmt1.close(); pstmt1.close();
pstmt1=null; pstmt1=null;
} }
else else
{ {
System.out.println("QUANTITY MATCHED********");
System.out.println("EMP_CODE__USER UPDATED"); System.out.println("EMP_CODE__USER UPDATED");
sql="update physcandet set EMP_CODE__USER = '"+empCode +"' ,EMP_CODE__VERIFY = '"+empCode+"' where tran_id=? and item_code=? and line_no = ? "; // change on 01/mar/14 start sql="update physcandet set EMP_CODE__USER = '"+empCode +"',EMP_CODE__VERIFY = '"+empCode+"' where tran_id=? and item_code=? and line_no = ? "; // change on 01/mar/14 start
pstmt1=conn.prepareStatement(sql); pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,refId); pstmt1.setString(1,refId);
pstmt1.setString(2,itemCode); pstmt1.setString(2,itemCode);
...@@ -241,7 +243,8 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo ...@@ -241,7 +243,8 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
pstmt1.close(); pstmt1.close();
pstmt1=null; pstmt1=null;
} }
sql="update physcandet set EMP_CODE__VERIFY = ? where tran_id=? and reverify='N' and line_no = ? "; /******************************/
/*sql="update physcandet set EMP_CODE__VERIFY = ? where tran_id=? and reverify='N' and line_no = ? ";
pstmt1=conn.prepareStatement(sql); pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,empCode); pstmt1.setString(1,empCode);
pstmt1.setString(2,tranId); pstmt1.setString(2,tranId);
...@@ -250,7 +253,11 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo ...@@ -250,7 +253,11 @@ public class PhyItemVerifyPos extends ValidatorEJB implements PhyItemVerifyPosLo
upd = pstmt1.executeUpdate(); upd = pstmt1.executeUpdate();
pstmt1.close(); pstmt1.close();
pstmt1=null; pstmt1=null;
System.out.println(" upd success::"+upd); System.out.println(" upd success::"+upd);*/
/**************************CODE Commented by vishakha***24/12/2014********************************************************/
// sql="update physcandet set EMP_CODE__USER = ? where tran_id=? and reverify='Y' "; // sql="update physcandet set EMP_CODE__USER = ? where tran_id=? and reverify='Y' ";
// pstmt1=conn.prepareStatement(sql); // pstmt1=conn.prepareStatement(sql);
// pstmt1.setString(1,empCode); // pstmt1.setString(1,empCode);
......
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