Commit d6c5aa61 authored by cpatil's avatar cpatil

recalculate not called at the time of penalty


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98374 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 42776351
...@@ -75,12 +75,31 @@ public class POMilestoneCnf ...@@ -75,12 +75,31 @@ public class POMilestoneCnf
System.out.println("@@@@@@@@@ xmlDataAll["+xmlDataAll+"]"); System.out.println("@@@@@@@@@ xmlDataAll["+xmlDataAll+"]");
//vishakha method called sql = " select tran_type from PUR_MILSTN where tran_id = ? " ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId );
rs = pstmt.executeQuery();
if (rs.next())
{
tranType=checkNull(rs.getString("tran_type"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("@@@@@@@@@tranId["+tranId+"]tranType["+tranType+"]");
POrderMilestone pOrderMilestone = new POrderMilestone(); //vishakha method called
returnStr = pOrderMilestone.recalcDueDate(tranId, xmlDataAll, conn);
System.out.println("@@@@@@@@@ pOrderMilestone.recalcDueDate() returnStr["+returnStr+"]");
if(!"D".equalsIgnoreCase(tranType))
{
POrderMilestone pOrderMilestone = new POrderMilestone();
returnStr = pOrderMilestone.recalcDueDate(tranId, xmlDataAll, conn);
System.out.println("@@@@@@@@@ pOrderMilestone.recalcDueDate() returnStr["+returnStr+"]");
}
if(returnStr == null || returnStr.trim().length() == 0 || "SUCCESS".equalsIgnoreCase(returnStr)) if(returnStr == null || returnStr.trim().length() == 0 || "SUCCESS".equalsIgnoreCase(returnStr))
{ {
returnStr = workflowForPenalty(tranId, xmlDataAll, conn); returnStr = workflowForPenalty(tranId, xmlDataAll, 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