Commit e886ec4e authored by manohar's avatar manohar

bug fix min and max quantity interchangeed in variable


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96662 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ac8ca9cc
...@@ -616,8 +616,8 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -616,8 +616,8 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
else if (childNodeName.equals("min_qty")) else if (childNodeName.equals("min_qty"))
{ {
int mmaxqty,mminqty; int mmaxqty,mminqty;
mmaxqty=Integer.parseInt(genericUtility.getColumnValue("min_qty",dom)); mminqty =Integer.parseInt(genericUtility.getColumnValue("min_qty",dom));
mminqty=Integer.parseInt(genericUtility.getColumnValue("max_qty",dom)); mmaxqty=Integer.parseInt(genericUtility.getColumnValue("max_qty",dom));
System.out.println("20/10/14 manohar validation for [" + childNodeName + "] mmaxqty [ " + mmaxqty + "] mminqty [" + mminqty + "]"); System.out.println("20/10/14 manohar validation for [" + childNodeName + "] mmaxqty [ " + mmaxqty + "] mminqty [" + mminqty + "]");
...@@ -691,22 +691,23 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -691,22 +691,23 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
} }
} }
break;
} }
break;
}//switch }//switch
//}//for //}//for
int errListSize = errList.size(); int errListSize = errList.size();
int cnt = 0; int cnt = 0;
String errFldName = null, errorType = null; String errFldName = null, errorType = null;
System.out.println("errListSize ..........[" + errListSize + "]");
if(errList != null && errListSize > 0) if(errList != null && errListSize > 0)
{ {
for(cnt = 0; cnt < errListSize; cnt ++) for(cnt = 0; cnt < errListSize; cnt ++)
{ {
errCode = errList.get(cnt); errCode = errList.get(cnt);
errFldName = errFields.get(cnt); errFldName = errFields.get(cnt);
System.out.println("errCode .........." + errCode); System.out.println("errCode ..........[" + errCode + "]");
errString = getErrorString(errFldName, errCode, userId); errString = getErrorString(errFldName, errCode, userId);
errorType = errorType(conn , errCode); errorType = errorType(conn , errCode);
if(errString.length() > 0) if(errString.length() > 0)
......
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