Commit 430b189e authored by ssalve's avatar ssalve

Sarita : Added by sarita to resolve QC Issue on 11JAN2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@178188 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4e7dccbd
......@@ -310,9 +310,11 @@ public class CostCtrAllocIC extends ValidatorEJB implements CostCtrAllocICRemote
{
allocation = checkNull(genericUtility.getColumnValue("allocation",dom)).trim();
CurrentLineNo= checkNull(genericUtility.getColumnValue("line_no",dom)).trim();
System.out.println("Allocation Percentage Value is :::::["+allocation+"]");
if(allocation.trim().length()==0 || allocation == null)
System.out.println("Allocation Percentage Value is :::::["+allocation+"]" + "\t"+ "CurrentLineNo is :::"+CurrentLineNo);
int detlCnt1 = getNumOfNonDelDetail(dom2,3);
System.out.println("DETAIL COUNT" +detlCnt1);
if((detlCnt1 != 0) && (allocation.trim().length()==0 || allocation == null))
//if(allocation.trim().length()==0 || allocation == null)//Added by sarita on 11JAN2018
{
System.out.println("inside alloc_perc LENGTH..");
errCode = "VMEMPQLF03";
......@@ -1790,10 +1792,17 @@ public String defaultDataWiz() throws RemoteException, ITMException
for(int cnt = 0;cnt<detailNoteList.getLength();cnt++)
{
Element pNode=(Element) detailNoteList.item(cnt);
System.out.println("Inside 1");
updateFlag = getAttributeVal(pNode,"updateFlag");
//Added by sarita on 11JAN2018
if(!("D".equalsIgnoreCase(updateFlag)))
{
perAmt= pNode.getElementsByTagName("allocation").item(0).getFirstChild().getNodeValue();
lineNo= pNode.getElementsByTagName("line_no").item(0).getFirstChild().getNodeValue();
System.out.println("[If update flag is not D ]perAmt ::"+perAmt + "\t" + "lineNo ::"+lineNo +"update Flag ::"+updateFlag);
}
//Added by sarita on 30NOV2017
updateFlag = getAttributeVal(pNode,"updateFlag");
//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)))
......
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