Commit 4cf7e1f3 authored by agaikwad's avatar agaikwad

set cctr code in detail Screen


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@43313 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a16d90e0
......@@ -4011,6 +4011,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
valueXmlString.append("<sudcity>").append("<![CDATA[" + custCity + "]]>").append("</sudcity>");
tranMode = genericUtility.getColumnValue("tran_mode", dom1);
amount1 = genericUtility.getColumnValue("amount", dom);
System.out.println("dom["+dom+"]");
acctCode = getAccountValue("acct_code", dom, "0");// added by akhilesh on 04/09/12 (b'coz acct_code is wrong update )
System.out.println("acctCode--------------@@@@@@@"+acctCode);
......@@ -4022,8 +4023,12 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
billDate = genericUtility.getColumnValue("bill_date", dom);
billAmt1 = genericUtility.getColumnValue("bill_amt", dom);
deptCode = genericUtility.getColumnValue("dept_code", dom);
System.out.println("deptCode dom["+deptCode+"]");
empCode = genericUtility.getColumnValue("emp_code", dom);
cctrCode = genericUtility.getColumnValue("cctr_code", dom);
System.out.println("cctr_code dom["+cctrCode+"]");
String cctrCode1 = "";
analCode = genericUtility.getColumnValue("anal_code", dom);
if((quantity == null) || (quantity.trim().length() == 0))
{
......@@ -4066,8 +4071,47 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
analCode = "";
}
if("A".equalsIgnoreCase(tranMode))
{
parentNodeList1 = dom2.getElementsByTagName("Detail3");
childNodeListLength1 = parentNodeList1.getLength();
int ctr1;
for(ctr1 = 0; ctr1 < childNodeListLength1; ctr1++)
{
parentNode1 = parentNodeList1.item(ctr1);
String cctrCode2 = genericUtility.getColumnValueFromNode("cctr_code",parentNode1) ;
System.out.println("cctrCode2["+cctrCode2+"]");
cctrCode1=genericUtility.getColumnValue("cctr_code", dom);
System.out.println("cctr_code dom else ["+cctrCode1+"]");
if (lineNum == cnt)
{
valueXmlString.append("<cctr_code protect = \"0\">").append("<![CDATA[" + cctrCode2 + "]]>").append("</cctr_code>");
}
}
}
else
{
parentNodeList1 = dom2.getElementsByTagName("Detail3");
childNodeListLength1 = parentNodeList1.getLength();
int ctr1;
for(ctr1 = 0; ctr1 < childNodeListLength1; ctr1++)
{
parentNode1 = parentNodeList1.item(ctr1);
String cctrCode2 = genericUtility.getColumnValueFromNode("cctr_code",parentNode1) ;
System.out.println("cctrCode2["+cctrCode2+"]");
cctrCode1=genericUtility.getColumnValue("cctr_code", dom);
System.out.println("cctr_code dom else ["+cctrCode1+"]");
if (lineNum == cnt)
{
valueXmlString.append("<cctr_code protect = \"0\">").append("<![CDATA[" + cctrCode2 + "]]>").append("</cctr_code>");
}
}
}
if("A".equalsIgnoreCase(tranMode))
{
System.out.println("acctCode if --------------@@@@@@@"+acctCode);
System.out.println("cctrCode if --------------@@@@@@@"+cctrCode);
valueXmlString.append("<amount protect = \"1\">").append("<![CDATA[" + amount1 + "]]>").append ("</amount>");
valueXmlString.append("<acct_code protect = \"1\">").append("<![CDATA[" + acctCode + "]]>").append ("</acct_code>");
valueXmlString.append("<quantity protect = \"1\">").append("<![CDATA[" + quantity + "]]>").append ("</quantity>");
......@@ -4084,6 +4128,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else
{
System.out.println("acctCode else --------------@@@@@@@"+acctCode);
System.out.println("cctrCode else --------------@@@@@@@"+cctrCode);
valueXmlString.append("<amount protect = \"0\">").append("<![CDATA[" + amount1 + "]]>").append ("</amount>");
valueXmlString.append("<acct_code protect = \"0\">").append("<![CDATA[" + acctCode + "]]>").append ("</acct_code>");
valueXmlString.append("<quantity protect = \"0\">").append("<![CDATA[" + quantity + "]]>").append ("</quantity>");
......@@ -4096,7 +4141,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
valueXmlString.append("<bill_amt protect = \"0\">").append("<![CDATA[" + billAmt1 + "]]>").append ("</bill_amt>");
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>");
//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