Commit ee338024 authored by manohar's avatar manohar

before deallocation the item_code,loc_code,lot_no and lot_sl taken from table...

before deallocation the item_code,loc_code,lot_no and lot_sl taken from table instead of current dom


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95883 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 95cfe804
...@@ -105,13 +105,18 @@ public class SReturnPrs extends ValidatorEJB implements SReturnPrsLocal, SReturn ...@@ -105,13 +105,18 @@ public class SReturnPrs extends ValidatorEJB implements SReturnPrsLocal, SReturn
lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail); lotSl = GenericUtility.getInstance().getColumnValueFromNode("lot_sl",currDetail);
stmt = conn.createStatement(); stmt = conn.createStatement();
sqlStr = "SELECT QUANTITY FROM SRETURNDET WHERE TRAN_ID = '"+tranId+"'" + sqlStr = "SELECT QUANTITY,item_code,loc_code,lot_no,lot_sl FROM SRETURNDET WHERE TRAN_ID = '"+tranId+"'" +
" AND LINE_NO = "+lineNo+""; //Omited the single quotes as it is not working in DB2 //Gulzar 09-01-07 " AND LINE_NO = "+lineNo+""; //Omited the single quotes as it is not working in DB2 //Gulzar 09-01-07
System.out.println("sqlStr :: " + sqlStr); System.out.println("sqlStr :: " + sqlStr);
rs = stmt.executeQuery(sqlStr); rs = stmt.executeQuery(sqlStr);
if(rs.next()) if(rs.next())
{ {
qtyStr = rs.getString(1); qtyStr = rs.getString(1);
itemCode = rs.getString("item_code");
locCode = rs.getString("loc_code");
lotNo = rs.getString("lot_no");
lotSl = rs.getString("lot_sl");
} }
rs.close(); rs.close();
rs = null; 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