Commit 13f099e8 authored by mjadhav's avatar mjadhav

due date set from pur_milestn insted of xml


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98387 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 87a301ee
......@@ -95,18 +95,40 @@ public class POrderMilestone extends ValidatorEJB {
}
}
/*-----------changed dated 25/07/2015------------------*/
sql ="select due_date from pur_milstn where tran_id=?";
pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, tranId);
rs2 = pstmt2.executeQuery();
if(rs2.next())
{
dueDateOrg=rs2.getTimestamp("due_date");
}
rs2.close();
rs2 = null;
pstmt2.close();
pstmt2 = null;
System.out.println("dueDateOrg : "+dueDateOrg);
/*-------------------------------------------------------------------*/
if(complDate.length() > 0)//completion date is not null
{
complDateNew = Timestamp.valueOf(genericUtility.getValidDateString(complDate, dateFormat,genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("completionDate ====parsed into sql format:::::"+complDateNew);
}
if(dueDateOrgStr.length() > 0)
/*if(dueDateOrgStr.length() > 0)
{
dueDateOrg = Timestamp.valueOf(genericUtility.getValidDateString(dueDateOrgStr,dateFormat,genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println("Due Date Original ====parsed into sql format:::==="+dueDateOrg);
}
}*/
if(dueDateOrg.before(complDateNew))//if completion date is greater than due date original
{
System.out.println("days-----"+delayDays);
......
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