Commit 42ed81f9 authored by agaikwad's avatar agaikwad

set tran date.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@43808 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d6925412
......@@ -196,13 +196,16 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
String ordType = "",itemSer = "",acctCodeDr = "",cctrCodeDr = "",acctCodeCr = "",cctrCodeCr = "",invLock = "",holdTranId = "";
Timestamp expDate = null, mfgDate = null;
String siteCodeMfg = "", packCode = "";
Date tranDate = null;
try
{
postordact=new PostOrderActivity();
itmDBAccessEJB = new ITMDBAccessEJB();
Date today = new java.sql.Timestamp(System.currentTimeMillis()) ;// Added by Abhijit on 15/05/17
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
tranDate = java.sql.Timestamp.valueOf(sdf.format(today) + " 00:00:00.000");
// Changed by Manish on 28/04/16 for update nowait [start]
// sql = "select confirmed from despatch where desp_id = ?";
......@@ -265,7 +268,7 @@ public class DespatchConfirm extends ActionHandlerEJB implements DespatchConfirm
}
else
{
pstmt1.setDate(1, new java.sql.Date(System.currentTimeMillis()));
pstmt1.setDate(1,(java.sql.Date) tranDate);
}
pstmt1.setString(2,tranId);
int count = pstmt1.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