Commit 7c0d3980 authored by kgaikwad's avatar kgaikwad

Error in Reversal JV. change date and status is not set

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213335 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bc85f583
......@@ -498,12 +498,14 @@ conn = getConnection();
String detAnalCode = "",detAmount = "",detDrcrFlag= "",detRemarks= "",detProjCode = "";
int ctr = 0 ,ctrLine = 0, ediOption = 0;
double amt = 0,amtDbl=0;
String chgUser="";
java.sql.Timestamp toDay = null;
java.sql.Timestamp revDt = null;
StringBuffer xmlBuff = null;
// added by cpatil on 01/07/13 start
String detItemCode="";
String analysis="";
String analysis="";
String chgTerm="";
String[] analysisStr =null;
String analysis1__dr="",analysis2__dr="",analysis3__dr="",analysis1__cr="",analysis2__cr="",analysis3__cr="" ;
String analysis1="",analysis2="",analysis3="";
......@@ -513,6 +515,9 @@ conn = getConnection();
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
itmDBAccessEJB = new ITMDBAccessEJB();
empCodeAprv = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
chgTerm =genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId");// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
toDay=new Timestamp(System.currentTimeMillis());// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
System.out.println("empCodeAprv : "+empCodeAprv);
glTraceMap = new HashMap();
for (ctr =0; ctr < jourdetList.size(); ctr++)
......@@ -868,8 +873,8 @@ conn = getConnection();
sql =" insert into journal "
+" ( tran_id, tran_date, eff_date, fin_entity, site_code, dr_amt, cr_amt , "
+" remarks, reversible, status, confirmed, ref_ser, ref_no, curr_code, "
+" tran_type,exch_rate, chg_date, chg_user, proj_code ) "
+" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )";
+" tran_type,exch_rate, chg_date, chg_user,chg_term, proj_code ) "//chg_term add by kailas
+" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIDSer);
......@@ -891,8 +896,10 @@ conn = getConnection();
//pstmt.setString(16,(String)journalMap.get("exch_rate"));
pstmt.setDouble(16,Double.parseDouble(journalMap.get("exch_rate").toString()));
pstmt.setTimestamp(17,toDay);
pstmt.setString(18,empCodeAprv);
pstmt.setString(19,(String)journalMap.get("proj_code"));
pstmt.setString(18,chgUser);// Add by kailasG on 6-dec-2019[Error in Reversal JV. change date and status is not set]
pstmt.setString(19,chgTerm );// Add by kailasG on 6-dec-2019[Error in Reversal JV. change date and status is not set]
//pstmt.setString(18,empCodeAprv); commented by kailasG on 6-dec-2019[Error in Reversal JV. change date and status is not set]
pstmt.setString(20,(String)journalMap.get("proj_code"));
pstmt.executeUpdate();
pstmt.close();
......@@ -1159,6 +1166,8 @@ conn = getConnection();
StringBuffer xmlBuff = null;
String finEntityFr = "",acctCodeRcp = "",acctCodePay = "",autoConf="",siteCodeRev="";
String acctCode = "",finEntity = "";
String chgTerm="";
String chgUser="";
FinCommon Fcommon = new FinCommon();
// 08/01/13 manoharan net effect of total dr/cr to be posted to summary entry
double totDrAmount = 0, totCrAmount = 0, hdrAmount = 0;
......@@ -1167,6 +1176,9 @@ conn = getConnection();
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
itmDBAccessEJB = new ITMDBAccessEJB();
empCodeAprv = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginEmpCode");
chgUser = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
chgTerm =(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
toDay=new Timestamp(System.currentTimeMillis());// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
siteCode = journalMap.get("site_code").toString().trim();
siteCodeFor = journalMap.get("site_code__for").toString().trim();
......@@ -1594,8 +1606,8 @@ conn = getConnection();
sql =" insert into journal "
+" (tran_id, tran_date, eff_date, fin_entity, site_code, dr_amt, cr_amt , "
+" remarks, reversible, status,confirmed, ref_ser, ref_no, curr_code, "
+" tran_type,exch_rate, chg_date, chg_user, proj_code ) "
+" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )";
+" tran_type,exch_rate, chg_date, chg_user,chg_Term, proj_code ) "//CHG_TERM
+" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,? )";
System.out.println("SQL for journal insert :: "+sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIDSer); //new generated tranId
......@@ -1621,8 +1633,10 @@ conn = getConnection();
//pstmt.setString(16,(String)journalMap.get("exch_rate"));
pstmt.setDouble(16,Double.parseDouble(journalMap.get("exch_rate").toString()));
pstmt.setTimestamp(17,toDay);
pstmt.setString(18,empCodeAprv);
pstmt.setString(19,detProjCode);
pstmt.setString(18,chgUser);// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
pstmt.setString(19,chgTerm);// Add by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
//pstmt.setString(19,empCodeAprv); commented by kailasG on 10-dec-2019[Error in Reversal JV. change date and status is not set]
pstmt.setString(20,detProjCode);
pstmt.executeUpdate();
pstmt.close();
//added at 12/08/11 by chandni
......
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