Commit a4bceaed authored by vvengurlekar's avatar vvengurlekar

PoReceiptIc.java - changes in file because of sitecode was assigned to itemcode


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185756 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5c27ab3e
...@@ -2397,7 +2397,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -2397,7 +2397,9 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
if ("Y".equalsIgnoreCase(lsqcreqd)) if ("Y".equalsIgnoreCase(lsqcreqd))
{ {
itemCode=genericUtility.getColumnValue("item_code", dom); itemCode=genericUtility.getColumnValue("item_code", dom);
//Added by Varsha V on 01-06-18 for reassigning value
lsqcreqd = "";
//Ended by Varsha V on 01-06-18 for reassigning value
sql="select qc_reqd from siteitem where item_code = ? and site_code = ?"; sql="select qc_reqd from siteitem where item_code = ? and site_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode); pstmt.setString(1, itemCode);
...@@ -3641,8 +3643,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -3641,8 +3643,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
"and valid_upto >= ?" + "and valid_upto >= ?" +
"and confirmed = 'Y'"; "and confirmed = 'Y'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lssitecode); //Commented and Added by varsha v because wrong parameter were appended
pstmt.setString(2, lssitecode); //pstmt.setString(1, lssitecode);
pstmt.setString(1, lsitem);
//Commented and Added by varsha v because wrong parameter were appended
pstmt.setString(3, suppcodemnfr); pstmt.setString(3, suppcodemnfr);
pstmt.setTimestamp(4, Date); pstmt.setTimestamp(4, Date);
pstmt.setTimestamp(5, Date); pstmt.setTimestamp(5, Date);
...@@ -3671,8 +3675,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -3671,8 +3675,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
"and valid_upto >= ? " + "and valid_upto >= ? " +
"and confirmed = 'Y'"; "and confirmed = 'Y'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, lssitecode); //Commented and Added by varsha v because wrong parameter were appended
pstmt.setString(2, lssitecode); //pstmt.setString(1, lssitecode);
pstmt.setString(1, lsitem);
//Commented and Added by varsha v because wrong parameter were appended
pstmt.setString(3, suppcodemnfr); pstmt.setString(3, suppcodemnfr);
pstmt.setTimestamp(4, Date); pstmt.setTimestamp(4, Date);
pstmt.setTimestamp(5, Date); pstmt.setTimestamp(5, Date);
...@@ -9889,8 +9895,12 @@ return errCode; ...@@ -9889,8 +9895,12 @@ return errCode;
" from siteitem where" + " from siteitem where" +
" site_code = ? and item_code = ?"; " site_code = ? and item_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemcode); //Commented and added by Varsha V on 01-06-18 because wrong parameters were appended
pstmt.setString(2, sitecode); //pstmt.setString(1, itemcode);
//pstmt.setString(2, sitecode);
pstmt.setString(1, sitecode);
pstmt.setString(2, itemcode);
//Commented and added by Varsha V on 01-06-18 because wrong parameters were appended
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
......
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