Commit 21ab04b6 authored by vvengurlekar's avatar vvengurlekar

MiscVoucherIC.java- Changes done to set proper cctr_code in detail 3 of...

MiscVoucherIC.java- Changes done to set proper cctr_code in detail 3 of misc_voucher on itmdefault_edit


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200907 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0e22faae
......@@ -4852,7 +4852,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
{
analCode = "";
}
if("A".equalsIgnoreCase(tranMode))
//Commented code by Varsha V on 17-MAY-19 because last cctr_code was setting in current dom in itmdefault_edit [START]
/*if("A".equalsIgnoreCase(tranMode))
{
parentNodeList1 = dom2.getElementsByTagName("Detail3");
childNodeListLength1 = parentNodeList1.getLength();
......@@ -4889,7 +4890,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
}
}
}
}*/
//Commented code by Varsha V on 17-MAY-19 because last cctr_code was setting in current dom in itmdefault_edit [END]
if("A".equalsIgnoreCase(tranMode))
{
System.out.println("acctCode if --------------@@@@@@@"+acctCode);
......@@ -4906,6 +4908,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
valueXmlString.append("<bill_amt protect = \"1\">").append("<![CDATA[" + billAmt1 + "]]>").append ("</bill_amt>");
valueXmlString.append("<dept_code protect = \"1\">").append("<![CDATA[" + deptCode + "]]>").append ("</dept_code>");
valueXmlString.append("<emp_code protect = \"1\">").append("<![CDATA[" + empCode + "]]>").append ("</emp_code>");
//Added below line by Varsha V on 17-MAY-2019 to set current dom cctr_code
valueXmlString.append("<cctr_code protect = \"0\">").append("<![CDATA[" + cctrCode + "]]>").append ("</cctr_code>");
}
else
{
......@@ -4924,6 +4928,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
valueXmlString.append("<dept_code protect = \"0\">").append("<![CDATA[" + deptCode + "]]>").append ("</dept_code>");
valueXmlString.append("<emp_code protect = \"0\">").append("<![CDATA[" + empCode + "]]>").append ("</emp_code>");
//valueXmlString.append("<cctr_code protect = \"0\">").append("<![CDATA[" + cctrCode + "]]>").append ("</cctr_code>");
//Added below line by Varsha V on 17-MAY-2019 to set current dom cctr_code
valueXmlString.append("<cctr_code protect = \"0\">").append("<![CDATA[" + cctrCode + "]]>").append ("</cctr_code>");
valueXmlString.append("<anal_code protect = \"0\">").append("<![CDATA[" + analCode + "]]>").append ("</anal_code>");
}
}
......
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