Commit e20a7e1f authored by smestry's avatar smestry

Updated the code for stockAmd to display blank errCode.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104765 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a9e1430d
...@@ -295,8 +295,7 @@ public class StockAmdConf extends ActionHandlerEJB implements StockAmdConfLocal, ...@@ -295,8 +295,7 @@ public class StockAmdConf extends ActionHandlerEJB implements StockAmdConfLocal,
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
Date currDate = new Date(); Date currDate = new Date();
String ld_conf_date = sdf.format(currDate); java.sql.Date currentDate = new java.sql.Date(new java.util.Date().getTime());
ls_errcode = confirmStockAmd(tranId, isError, conn); ls_errcode = confirmStockAmd(tranId, isError, conn);
System.out.println("ls_errcode Inside retriveStockAmd ===========>>"+ls_errcode); System.out.println("ls_errcode Inside retriveStockAmd ===========>>"+ls_errcode);
...@@ -305,7 +304,7 @@ public class StockAmdConf extends ActionHandlerEJB implements StockAmdConfLocal, ...@@ -305,7 +304,7 @@ public class StockAmdConf extends ActionHandlerEJB implements StockAmdConfLocal,
sql = "UPDATE STOCK_AMD SET CONFIRMED = ?, CONF_DATE = ? WHERE TRAN_ID = ? "; sql = "UPDATE STOCK_AMD SET CONFIRMED = ?, CONF_DATE = ? WHERE TRAN_ID = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, "Y"); pstmt.setString(1, "Y");
pstmt.setString(2, ld_conf_date); pstmt.setDate(2, currentDate);
pstmt.setString(3, tranId); pstmt.setString(3, tranId);
int cnt = pstmt.executeUpdate(); int cnt = pstmt.executeUpdate();
......
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