Commit cbac57db authored by ngadkari's avatar ngadkari

added if condition to check if it is not null then get cell from row

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195203 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 90c7bc00
...@@ -2960,7 +2960,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -2960,7 +2960,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
NodeList childList = null; NodeList childList = null;
Node parentNode = null; Node parentNode = null;
Node childNode = null; Node childNode = null;
boolean isUpdated=false;
lc_Qty = Double.parseDouble(checkDoubleNull(genericUtility.getColumnValue("quantity", dom))); lc_Qty = Double.parseDouble(checkDoubleNull(genericUtility.getColumnValue("quantity", dom)));
ls_SaleOrd = checkNull(genericUtility.getColumnValue("sord_no", dom)); ls_SaleOrd = checkNull(genericUtility.getColumnValue("sord_no", dom));
ls_LineNoSord = checkNull(genericUtility.getColumnValue("line_no__sord", dom)); ls_LineNoSord = checkNull(genericUtility.getColumnValue("line_no__sord", dom));
...@@ -3026,7 +3026,16 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -3026,7 +3026,16 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
for (int ctr = 0; ctr < childList.getLength(); ctr++) for (int ctr = 0; ctr < childList.getLength(); ctr++)
{ {
childNode = childList.item(ctr); childNode = childList.item(ctr);
//added by nandkumar gadkari on 03/01/19-------------added attribute condition
if ( childNode.getNodeName().equalsIgnoreCase("attribute") )
{
String updateNodeValue = childNode.getAttributes().getNamedItem("updateFlag").getFirstChild().getNodeValue();
System.out.println("updateNodeValue["+updateNodeValue+"]");
if(! "D".equalsIgnoreCase(updateNodeValue))
{
isUpdated = true;
}
}
if ( childNode != null && childNode.getFirstChild() != null if ( childNode != null && childNode.getFirstChild() != null
&& childNode.getNodeName().equalsIgnoreCase("sord_no") ) && childNode.getNodeName().equalsIgnoreCase("sord_no") )
...@@ -3046,7 +3055,11 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -3046,7 +3055,11 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
if ( childNode != null && childNode.getFirstChild() != null if ( childNode != null && childNode.getFirstChild() != null
&& childNode.getNodeName().equalsIgnoreCase("quantity") ) && childNode.getNodeName().equalsIgnoreCase("quantity") )
{ {
lc_Qty1 = Double.parseDouble(checkDoubleNull( childNode.getFirstChild().getNodeValue().trim())); if(isUpdated)
{
isUpdated=false;
lc_Qty1 = Double.parseDouble(checkDoubleNull( childNode.getFirstChild().getNodeValue().trim()));
}
} }
if ( childNode != null && childNode.getFirstChild() != null if ( childNode != null && childNode.getFirstChild() != null
&& childNode.getNodeName().equalsIgnoreCase("line_no") ) && childNode.getNodeName().equalsIgnoreCase("line_no") )
......
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