Commit 358f0600 authored by mmhatre's avatar mmhatre

add validation for accept criteria and bug fixed for tax env in payment terms screen

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211370 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 83e3fe76
...@@ -5039,7 +5039,8 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -5039,7 +5039,8 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
ordDate = checkNull(genericUtility.getColumnValue( ordDate = checkNull(genericUtility.getColumnValue(
"ord_date", dom1)); "ord_date", dom1));
if (taxEnv.trim().length() > 0) { // if (taxEnv.trim().length() > 0) {
if (taxEnv!=null && taxEnv.trim().length() > 0) { //added by manish mhatre [taxEnv!=null]
sql = " select count(*) from taxenv where tax_env = ?"; sql = " select count(*) from taxenv where tax_env = ?";
pStmt = conn.prepareStatement(sql); pStmt = conn.prepareStatement(sql);
pStmt.setString(1, taxEnv); pStmt.setString(1, taxEnv);
......
...@@ -803,6 +803,20 @@ PoReturnICRemote { ...@@ -803,6 +803,20 @@ PoReturnICRemote {
} }
} }
//added by manish mhatre on 06-nov-2019
//start manish [add validation for accept criteria]
else if (childNodeName.equalsIgnoreCase("accept_criteria"))
{
acceptCriteria = checkNull(genericUtility.getColumnValue("accept_criteria", dom));
if(acceptCriteria== null || acceptCriteria.trim().length() == 0)
{
errCode="VTNULCRT ";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
} //end manish
}// end for <purc_order> }// end for <purc_order>
break; break;
case 2: case 2:
......
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