Commit 94b2e661 authored by ssalve's avatar ssalve

Sarita: Done changes to set current date for bill_date, due_date,...

Sarita: Done changes to set current date for bill_date, due_date, tax_date,conf_date, chg_date on 30APR2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184305 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 71a6ca65
......@@ -3292,7 +3292,11 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
java.sql.Timestamp currDate = null;
currDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
//Added by sarita on 30APR2018 to set current Date with Time [start]
java.sql.Timestamp currentDateTime = null;
currentDateTime = new java.sql.Timestamp(System.currentTimeMillis());
System.out.println("currentDateTime >>> ["+currentDateTime+"]");
//Added by sarita on 30APR2018 to set current Date with Time[end]
try
{
//Modified by mayur on 27-04-18--start
......@@ -3763,10 +3767,12 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmtInsert = conn.prepareStatement(sqlInsert);
pstmtInsert.setString(1, vouchId);
pstmtInsert.setTimestamp(2, currDate);
pstmtInsert.setTimestamp(3, tranDt);
//pstmtInsert.setTimestamp(3, tranDt); done changes by sarita to set currDate in[eff_date] : 30APR2018
pstmtInsert.setTimestamp(3, currDate);
pstmtInsert.setString(4,supp);
pstmtInsert.setString(5, "");
pstmtInsert.setTimestamp(6,tranDt);
//pstmtInsert.setTimestamp(6,tranDt);done changes by sarita to set currDate in[bill_date] : 30APR2018
pstmtInsert.setTimestamp(6,currDate);
pstmtInsert.setString(7,tranId);
pstmtInsert.setString(8, curr);
pstmtInsert.setDouble(9, exch);
......@@ -3777,7 +3783,8 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmtInsert.setDouble(14, advPerc);
pstmtInsert.setString(15, crTerm);
pstmtInsert.setTimestamp(16,mileStoneDt);
pstmtInsert.setTimestamp(17,currDate);
//pstmtInsert.setTimestamp(17,currDate);//done changes by sarita to set current Date with time[chg_date] : 30APR2018
pstmtInsert.setTimestamp(17,currentDateTime);
pstmtInsert.setString(18, "BASE"); //chg USer
pstmtInsert.setString(19, "BASE"); // LoginCOde
pstmtInsert.setString(20, site);
......@@ -3785,12 +3792,14 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmtInsert.setDouble(22, 0);
pstmtInsert.setDouble(23, 0);
pstmtInsert.setDouble(24, 0);
pstmtInsert.setTimestamp(25, tranDt);
//pstmtInsert.setTimestamp(25, tranDt); done changes by sarita to set currDate in[tax_date] : 30APR2018
pstmtInsert.setTimestamp(25, currDate);
pstmtInsert.setString(26, "A");
pstmtInsert.setString(27, proj);
pstmtInsert.setString(28, "N");
pstmtInsert.setString(29, null);
pstmtInsert.setTimestamp(30, currDate);
//pstmtInsert.setTimestamp(30, currDate);done changes by sarita to set current Date with time[conf_date] : 30APR2018
pstmtInsert.setTimestamp(30, currentDateTime);
pstmtInsert.setString(31, payMode);
pstmtInsert.setDouble(32, netAmt);
pstmtInsert.setDouble(33, netAmtBase);
......@@ -4135,10 +4144,12 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmtInsert = conn.prepareStatement(sqlInsert);
pstmtInsert.setString(1, vouchId);
pstmtInsert.setTimestamp(2, currDate);
pstmtInsert.setTimestamp(3, tranDt);
//pstmtInsert.setTimestamp(3, tranDt); done changes by sarita to set currDate in[eff_date] : 30APR2018
pstmtInsert.setTimestamp(3, currDate);
pstmtInsert.setString(4,supp);
pstmtInsert.setString(5, "");
pstmtInsert.setTimestamp(6,tranDt);
//pstmtInsert.setTimestamp(6,tranDt);done changes by sarita to set currDate in[bill_date] : 30APR2018
pstmtInsert.setTimestamp(6,currDate);
pstmtInsert.setString(7,tranId);
pstmtInsert.setString(8, curr);
pstmtInsert.setDouble(9, exch);
......@@ -4149,7 +4160,8 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmtInsert.setDouble(14, advPerc);
pstmtInsert.setString(15, crTerm);
pstmtInsert.setTimestamp(16,mileStoneDt);
pstmtInsert.setTimestamp(17,currDate);
//pstmtInsert.setTimestamp(17,currDate);//done changes by sarita to set current Date with time[chg_date] : 30APR2018
pstmtInsert.setTimestamp(17,currentDateTime);
pstmtInsert.setString(18, "BASE"); //chg USer
pstmtInsert.setString(19, "BASE"); // LoginCOde
pstmtInsert.setString(20, site);
......@@ -4157,12 +4169,14 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
pstmtInsert.setDouble(22, 0);
pstmtInsert.setDouble(23, 0);
pstmtInsert.setDouble(24, 0);
pstmtInsert.setTimestamp(25, tranDt);
//pstmtInsert.setTimestamp(25, tranDt); done changes by sarita to set currDate in[tax_date] : 30APR2018
pstmtInsert.setTimestamp(25, currDate);
pstmtInsert.setString(26, "A");
pstmtInsert.setString(27, proj);
pstmtInsert.setString(28, "N");
pstmtInsert.setString(29, null);
pstmtInsert.setTimestamp(30, currDate);
//pstmtInsert.setTimestamp(30, currDate);done changes by sarita to set current Date with time[conf_date] : 30APR2018
pstmtInsert.setTimestamp(30, currentDateTime);
pstmtInsert.setString(31, payMode);
pstmtInsert.setDouble(32, netAmt);
pstmtInsert.setDouble(33, netAmtBase);
......
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