Commit 2bbec09d authored by ngadkari's avatar ngadkari

added validation of amount

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211836 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 82a01a79
...@@ -1117,6 +1117,7 @@ public class LoanIC extends ValidatorEJB implements LoanICLocal, LoanICRemote ...@@ -1117,6 +1117,7 @@ public class LoanIC extends ValidatorEJB implements LoanICLocal, LoanICRemote
double loanAmount=0.0,loanTenure=0.0,intRate=0.0,exchRate=0.0,repayDaysInt=0.0,moratoriumPrdInt=0.0; double loanAmount=0.0,loanTenure=0.0,intRate=0.0,exchRate=0.0,repayDaysInt=0.0,moratoriumPrdInt=0.0;
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
String tranId=""; String tranId="";
double amount=0.0;
try try
{ {
SimpleDateFormat sdf1= new SimpleDateFormat(genericUtility.getDBDateFormat()); SimpleDateFormat sdf1= new SimpleDateFormat(genericUtility.getDBDateFormat());
...@@ -1909,18 +1910,27 @@ public class LoanIC extends ValidatorEJB implements LoanICLocal, LoanICRemote ...@@ -1909,18 +1910,27 @@ public class LoanIC extends ValidatorEJB implements LoanICLocal, LoanICRemote
} }
} }
}// end of if block }// end of if block
// ADDED BY NANDKUMAR GADKARI ON 12/11/19
/*else if("amount_paid".equalsIgnoreCase(childNodeName)) else if("amount_paid".equalsIgnoreCase(childNodeName))
{ {
errCode = valAmount(dom, dom1,dom2, "amount_paid", objContext, editFlag, conn); /*errCode = valAmount(dom, dom1,dom2, "amount_paid", objContext, editFlag, conn);
System.out.println("Amount" + errCode + "]"); System.out.println("Amount" + errCode + "]");
if (errCode != null && errCode.trim().length() > 0) { if (errCode != null && errCode.trim().length() > 0) {
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
}*/
amount = checkDoubleNull(genericUtility.getColumnValue("amount_paid", dom));
if(amount == 0)
{
errCode = "VTINAMZEO ";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} }
}// end of if block }// end of if block
*/
}//end for loop }//end for loop
break; break;
......
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