Commit 778bef02 authored by manohar's avatar manohar

Validation added that min/max rate cannot be negative


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96647 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 61bbbb0b
...@@ -650,10 +650,10 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -650,10 +650,10 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
rs = null; rs = null;
} }
else if(childNodeName.equals("rate")) else if(childNodeName.equals("rate") || childNodeName.equals("min_rate") || childNodeName.equals("max_rate") ) // 20/10/14 manoharan min_rate and max_rate included
{ {
int mrate; double mrate; // 20/10/14 manoharan changes from integer to double
mrate= Integer.parseInt(genericUtility.getColumnValue("rate",dom) ); mrate= Double.parseDouble(genericUtility.getColumnValue("rate",dom) );
if(mrate<=0) if(mrate<=0)
errCode="VTRATE2"; errCode="VTRATE2";
errString=getErrorString("rate",errCode,userId); errString=getErrorString("rate",errCode,userId);
......
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