Commit 8cb16534 authored by manohar's avatar manohar

eff_date used for generating tran_id instead of current date and code moved to proper location


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91429 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6879a652
...@@ -252,14 +252,14 @@ public class JvYearEndClosingDtlPrc extends ProcessEJB implements JvYearEndClosi ...@@ -252,14 +252,14 @@ public class JvYearEndClosingDtlPrc extends ProcessEJB implements JvYearEndClosi
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
//Timestamp currDate = new Timestamp(System.currentTimeMillis()); // 15/06/11 manoharan commented //Timestamp currDate = new Timestamp(System.currentTimeMillis()); // 15/06/11 manoharan commented
//currDateTs = sdf.format(currDate).toString(); // 15/06/11 manoharan commented //currDateTs = sdf.format(currDate).toString(); // 15/06/11 manoharan commented
//genTranId = generateTranId("W_CLOSINGDTL_PROC", conn);
genTranId = generateTranId("W_CLOSINGDTL_PROC",siteCode, conn);
drAmtHdr = Math.abs(drAmtHdr);
crAmtHdr = Math.abs(crAmtHdr);
effDate = genericUtility.getColumnValue("eff_date",headerDom ); effDate = genericUtility.getColumnValue("eff_date",headerDom );
effDateTs = Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); effDateTs = Timestamp.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
currDateTs = sdf.format(effDateTs).toString(); // 15/06/11 manoharan currDateTs = sdf.format(effDateTs).toString(); // 15/06/11 manoharan
//genTranId = generateTranId("W_CLOSINGDTL_PROC", conn);
genTranId = generateTranId("W_CLOSINGDTL_PROC",siteCode, conn);
drAmtHdr = Math.abs(drAmtHdr);
crAmtHdr = Math.abs(crAmtHdr);
//errString = insertJournal( jourList, genTranId, drAmtHdr,crAmtHdr, finEntity, firstSite, effDateTs, conn ); //errString = insertJournal( jourList, genTranId, drAmtHdr,crAmtHdr, finEntity, firstSite, effDateTs, conn );
errString = insertJournal( jourList, genTranId, drAmtHdr,crAmtHdr, finEntity, siteCode, effDateTs, conn ); errString = insertJournal( jourList, genTranId, drAmtHdr,crAmtHdr, finEntity, siteCode, effDateTs, conn );
} }
......
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