Commit 1c132b4d authored by pshinde's avatar pshinde

maxduedate set as ref date in update query in AutoPmtGEnprc


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99834 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ac12fec1
...@@ -635,7 +635,7 @@ public class AutoPmtGenPrc extends ProcessEJB ...@@ -635,7 +635,7 @@ public class AutoPmtGenPrc extends ProcessEJB
HashMap splitCodeWiseNegMap = new HashMap(); HashMap splitCodeWiseNegMap = new HashMap();
HashMap tempMapNeg = null; HashMap tempMapNeg = null;
ArrayList tempListNeg = null; ArrayList tempListNeg = null;
Timestamp refDateSTr=null;
java.util.Date dueDatediff = null; java.util.Date dueDatediff = null;
double pay_amt = 0.0D; double totamount = 0.0D; double totAmtRem = 0.0D; double pay_amt = 0.0D; double totamount = 0.0D; double totAmtRem = 0.0D;
String sundryCodeNeg = ""; String sundryCodeNeg = "";
...@@ -1649,7 +1649,12 @@ public class AutoPmtGenPrc extends ProcessEJB ...@@ -1649,7 +1649,12 @@ public class AutoPmtGenPrc extends ProcessEJB
{ {
dueMaxDate = currentDate1; dueMaxDate = currentDate1;
} }
//added by priyanka on 06/01/16
String dueMaxStr = sdf.format(dueMaxDate);
System.out.println("Due Date Max======"+dueMaxStr);
refDateSTr = Timestamp.valueOf(genericUtility.getValidDateString(dueMaxStr, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("Date to be set as Ref Date@@@@@@@==="+refDateSTr);
///
System.out.println("1384Getting ref due Date for header====" + dueMaxDate); System.out.println("1384Getting ref due Date for header====" + dueMaxDate);
System.out.println("1385sfld1=========" + sfld1); System.out.println("1385sfld1=========" + sfld1);
...@@ -2020,10 +2025,11 @@ public class AutoPmtGenPrc extends ProcessEJB ...@@ -2020,10 +2025,11 @@ public class AutoPmtGenPrc extends ProcessEJB
} }
System.out.println(">>>In autoPaym Generated new Tran ID:" + autoPaymTranId); System.out.println(">>>In autoPaym Generated new Tran ID:" + autoPaymTranId);
sql = "UPDATE MISC_PAYMENT SET WF_STATUS= ? WHERE TRAN_ID=?"; sql = "UPDATE MISC_PAYMENT SET WF_STATUS= ?,ref_date=? WHERE TRAN_ID=?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, wfStatus); pstmt.setString(1, wfStatus);
pstmt.setString(2, autoPaymTranId); pstmt.setTimestamp(2, refDateSTr);
pstmt.setString(3, autoPaymTranId);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
......
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