Commit fbb4b9e2 authored by dpawar's avatar dpawar

Done validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92380 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a95b1958
...@@ -243,7 +243,6 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -243,7 +243,6 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
errString = getErrorString("recovery_amt__act",errCode,userId); errString = getErrorString("recovery_amt__act",errCode,userId);
break; break;
} }
if( bondAmt !=null && bondAmt.trim().length() > 0 ) if( bondAmt !=null && bondAmt.trim().length() > 0 )
{ {
...@@ -258,20 +257,21 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -258,20 +257,21 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
break; break;
} }
} }
if (recAmtAct != null && recAmtAct.trim().length() > 0 )
/*if( bondAmt !=null && bondAmt.trim().length() > 0 )
{ {
recAmountAct=Double.parseDouble(recAmtAct);
recAmountDue=Double.parseDouble(recAmtDue);
if(bondAmount == recAmountDone) if(recAmountAct > recAmountDue)
{ {
errCode="VRECAMTGRT"; System.out.println("greater condition-------");
errCode="VBACTAMTGR";
errString = getErrorString("recovery_amt__done",errCode,userId); errString = getErrorString("recovery_amt__done",errCode,userId);
break; break;
} }
}*/ }
} }
else if (childNodeName.equalsIgnoreCase("acct_code__bond")) else if (childNodeName.equalsIgnoreCase("acct_code__bond"))
...@@ -368,7 +368,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -368,7 +368,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
} }
} }
else if (childNodeName.equalsIgnoreCase("bond_amt")) /*else if (childNodeName.equalsIgnoreCase("bond_amt"))
{ {
bondAmt = genericUtility.getColumnValue("bond_amt",dom); bondAmt = genericUtility.getColumnValue("bond_amt",dom);
if (bondAmt == null || bondAmt.trim().length() == 0 ) if (bondAmt == null || bondAmt.trim().length() == 0 )
...@@ -377,7 +377,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -377,7 +377,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
errString = getErrorString("bond_amt",errCode,userId); errString = getErrorString("bond_amt",errCode,userId);
break; break;
} }
} }*/
}// for loop end }// for loop end
} //end switch } //end switch
...@@ -417,7 +417,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -417,7 +417,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException
{ {
System.out.println("in item changed"); System.out.println("in item changed --------->>>");
Document dom = null; Document dom = null;
Document dom1 = null; Document dom1 = null;
Document dom2 = null; Document dom2 = null;
......
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