Commit 7ff96371 authored by msalam's avatar msalam

cust item ref validation required only if it is not null as per kb on phone - alam


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91134 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c113f53f
...@@ -1404,6 +1404,10 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF ...@@ -1404,6 +1404,10 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF
custItemRef = genericUtility.getColumnValue("cust_item__ref",dom); custItemRef = genericUtility.getColumnValue("cust_item__ref",dom);
itemCode = genericUtility.getColumnValue("item_code",dom); itemCode = genericUtility.getColumnValue("item_code",dom);
custCode = genericUtility.getColumnValue("cust_code",dom1); custCode = genericUtility.getColumnValue("cust_code",dom1);
//msalam - as per kandarp sir on phone - 080809
//Validation required if custItemRef is not null only
if( custItemRef != null && custItemRef.trim().length() > 0 )
{
sql = " select count(*) " sql = " select count(*) "
+ " from customeritem" + " from customeritem"
+ " where cust_code = ?" + " where cust_code = ?"
...@@ -1428,6 +1432,7 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF ...@@ -1428,6 +1432,7 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF
errString = getErrorString("cust_item__ref",errCode,userId); errString = getErrorString("cust_item__ref",errCode,userId);
break; break;
} }
}
} //end totqty } //end totqty
}// end for }// end for
} //END switch } //END switch
......
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