Commit fbfa83e5 authored by mnair's avatar mnair

Changed the format of current date and effective date

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184207 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0a6893c4
......@@ -3292,9 +3292,15 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
java.sql.Timestamp currDate = null;
currDate = new java.sql.Timestamp(System.currentTimeMillis()) ;
try
{
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
//Modified by mayur on 27-04-18--start
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getDBDateFormat());
currDate = java.sql.Timestamp.valueOf(sdf.format(currDate) + " 00:00:00.000");
tranDt = java.sql.Timestamp.valueOf(sdf.format(tranDt) + " 00:00:00.000");
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
//Modified by mayur on 27-04-18--end
System.out.println("tranId..."+tranId + "adAdvPerc>>>"+adAdvPerc + "asFlag" + asFlag);
if(asFlag.equalsIgnoreCase("PO") || asFlag.equalsIgnoreCase("POPRO") )
......@@ -4092,8 +4098,8 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
rs.close();rs = null;
pstmt.close();pstmt = null;
remarks = "PO:" + tranId +"Date:"+ currDate +" Adv. Amt:"+ Double.toString(advPerc);
System.out.println("remarks"+remarks +"liRelAfter ["+liRelAfter + "]" + "currDate [" +currDate + "]");
remarks = "PO:" + tranId +"Date:"+ sdf.format(currDate) +" Adv. Amt:"+ Double.toString(advPerc);
System.out.println("remarks"+remarks +"liRelAfter ["+liRelAfter + "]" + "currDate [" +sdf.format(currDate) + "]");
if(errString.trim().length() == 0)
{
if(liRelAfter == 0)
......@@ -4105,7 +4111,7 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
mileStoneDt = utilMethods.RelativeDate(currDate, liRelAfter);
}
remarks = "PO:" + tranId +"Date:"+ currDate +" Adv. Amt:"+ Double.toString(amount);
remarks = "PO:" + tranId +"Date:"+ sdf.format(currDate) +" Adv. Amt:"+ Double.toString(amount);
rndStr = "VOUCH-RND";
rndOff = finCommon.getFinparams("999999", rndStr, conn);
System.out.println("rndOff"+rndOff + rndStr);
......
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