Commit 16af6546 authored by cpatil's avatar cpatil

update current date on status close in porder


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100033 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1e6e6b21
...@@ -2140,9 +2140,12 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -2140,9 +2140,12 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
} }
if (pocomp == true) if (pocomp == true)
{ {
sql = "update porder Set status = 'C' Where purc_order = ?"; chgDate = new java.sql.Timestamp(System.currentTimeMillis());
sql = "update porder Set status = 'C' , status_date = ? Where purc_order = ?";
pstmtUpd = conn.prepareStatement(sql); pstmtUpd = conn.prepareStatement(sql);
pstmtUpd.setString(1, purcOrder); pstmtUpd.setTimestamp(1, chgDate); // update current date on status close by cpatil on 25/01/16
pstmtUpd.setString(2, purcOrder);
updCnt = pstmtUpd.executeUpdate(); updCnt = pstmtUpd.executeUpdate();
System.out.println("in update"); System.out.println("in update");
if (updCnt != 1) if (updCnt != 1)
......
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