Commit 5b529f48 authored by vkadam's avatar vkadam

Add validation for line_no__ord==0 and update two fields while confirm.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96849 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7269eeaf
......@@ -590,6 +590,14 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom));
if( lineNoOrd != null && lineNoOrd.length() > 0 )
{
if((lineNoOrd.trim().equalsIgnoreCase("0")))// VALLABH KADAM Add validation for line_no__ord==0 20/NOV/14
{
errCode = "VTINVPOLIN";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
{
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom));
lineNoOrd = " "+lineNoOrd ;
lineNoOrd = lineNoOrd.substring(lineNoOrd.length()-3, lineNoOrd.length());
......@@ -614,6 +622,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
if( errCode == null || errCode.trim().length()==0 )
......@@ -2669,6 +2678,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
break;
// case 2 start
case 2 :
System.out.println("**********************In case 2 ***********************8");
parentNodeList = dom.getElementsByTagName("Detail2");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
......@@ -2689,7 +2699,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
ctr++;
}
while(ctr < childNodeListLength && !childNodeName.equals(currentColumn));
System.out.println("[" + currentColumn + "] ==> '" + columnValue + "'");
System.out.println("IN DETAILS column name is %%%%%%%%%%%%%[" + currentColumn + "] ==> '" + columnValue + "'");
if( currentColumn.trim().equalsIgnoreCase( "itm_defaultedit" ) )
......@@ -3432,7 +3442,9 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
}
else if( currentColumn.trim().equalsIgnoreCase("rate") )
{
String rateStr = genericUtility.getColumnValue("rate", dom);
System.out.println("In Rate itemchange Rate value by dom ["+rateStr+"]");
rate = rateStr==null?0:Double.parseDouble(rateStr);
unitRate = genericUtility.getColumnValue("unit__rate", dom);
unitStd = genericUtility.getColumnValue("unit__std", dom);
......
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