Commit 85883739 authored by smestry's avatar smestry

Updated the EJB to set date in receipt header


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103341 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 237482f0
......@@ -1808,9 +1808,14 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
return insertMap;
}
System.out.println("The values in HashMap for RECEIPT are : "+insertMap.toString());
java.sql.Timestamp currentDate = new Timestamp(System.currentTimeMillis());
//tranId = (String)insertMap.get("tran_id");
// Changed by Sneha on 12-09-2016, to store sql date [Start]
java.sql.Date curDate = new java.sql.Date(System.currentTimeMillis());
// Changed by Sneha on 12-09-2016, to store sql date [End]
//tranId = (String)insertMap.get("tran_id");
chqAmt = ((Double)insertMap.get("chq_amt")).doubleValue();
System.out.println("The TranId while inserting the record :::::::: "+tranId);
......@@ -1831,7 +1836,8 @@ public class DockTranPos extends ValidatorEJB implements DockTranPosLocal, DockT
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
pstmt.setTimestamp(2,currentDate);
//pstmt.setTimestamp(2,currentDate);
pstmt.setDate(2,curDate); // Changed by Sneha on 12-09-2016, to set current date
pstmt.setString(3,custCode);
pstmt.setString(4,rcpMode);
pstmt.setString(5,bankCode);
......
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