Commit 5c24f27a authored by rtiwari's avatar rtiwari

updated add valdation on net amt


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94279 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 17a614db
......@@ -268,9 +268,14 @@ public class AcctBalTransPrc extends ProcessEJB implements AcctBalTransPrcLocal,
}
else
{
if((errString != null ) && (errString.indexOf("vtnetamt") > -1 ))
{
errString = itmDBAccessEJB.getErrorString("","VTNETAMT0","","",conn);
}else{
errString = itmDBAccessEJB.getErrorString("","VTPRCERR ","","",conn);
}
conn.rollback();
System.out.println("--process not completed--");
errString = itmDBAccessEJB.getErrorString("","VTPRCERR ","","",conn);
}
}
catch(Exception e)
......@@ -615,10 +620,11 @@ public class AcctBalTransPrc extends ProcessEJB implements AcctBalTransPrcLocal,
xmlBuff.append("</Detail2>");
totAmt = totAmt + amount;
totAmt = 100;
}
if(totAmt == 0)
{
retString = "zeronetbal";
retString = "vtnetamt";
return retString ;
}
//for(int i = 0; i< count;i++)
......
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