Commit aa146049 authored by ssalve's avatar ssalve

Sarita: Done changes to resolve percentage issue on 30NOV2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174949 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7f89a815
...@@ -220,7 +220,7 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote ...@@ -220,7 +220,7 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
rs = null; rs = null;
} }
if(cnt > 0) if(cnt > 0)
{ {
errCode = "INVPRDSTCD"; errCode = "INVPRDSTCD";
errList.add(errCode); errList.add(errCode);
...@@ -1731,7 +1731,7 @@ public String defaultDataWiz() throws RemoteException, ITMException ...@@ -1731,7 +1731,7 @@ public String defaultDataWiz() throws RemoteException, ITMException
public double getNumOftotalallocPercentage(Document dom2,String CurrentLineNo) throws ITMException public double getNumOftotalallocPercentage(Document dom2,String CurrentLineNo) throws ITMException
{ {
String perAmt="",lineNo=""; String perAmt="",lineNo="",updateFlag = "";
double num=0; double num=0;
System.out.println("Inside getXmlDocument method!!!!!!!!!!!!!!"); System.out.println("Inside getXmlDocument method!!!!!!!!!!!!!!");
try try
...@@ -1744,8 +1744,11 @@ public String defaultDataWiz() throws RemoteException, ITMException ...@@ -1744,8 +1744,11 @@ public String defaultDataWiz() throws RemoteException, ITMException
Element pNode=(Element) detailNoteList.item(cnt); Element pNode=(Element) detailNoteList.item(cnt);
perAmt= pNode.getElementsByTagName("allocation").item(0).getFirstChild().getNodeValue(); perAmt= pNode.getElementsByTagName("allocation").item(0).getFirstChild().getNodeValue();
lineNo= pNode.getElementsByTagName("line_no").item(0).getFirstChild().getNodeValue(); lineNo= pNode.getElementsByTagName("line_no").item(0).getFirstChild().getNodeValue();
//Added by sarita on 30NOV2017
if(!lineNo.equalsIgnoreCase(CurrentLineNo.trim())) updateFlag = getAttributeVal(pNode,"updateFlag");
System.out.println("perAmt ::"+perAmt + "\t" + "lineNo ::"+lineNo +"update Flag ::"+updateFlag);
//if(!lineNo.equalsIgnoreCase(CurrentLineNo.trim()))
if((!lineNo.equalsIgnoreCase(CurrentLineNo.trim())) && !("D".equalsIgnoreCase(updateFlag)))
{ {
System.out.println("Line No is.. "+CurrentLineNo); System.out.println("Line No is.. "+CurrentLineNo);
num += Double.parseDouble(perAmt); num += Double.parseDouble(perAmt);
......
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