Commit e0f5f250 authored by ngadkari's avatar ngadkari

auto populate tax class tax chap and tax env based on the taxes eneterd in the misc_voucher

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@189555 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 80717f16
...@@ -4370,6 +4370,35 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -4370,6 +4370,35 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
valueXmlString.append("<sundry_code protect = \"1\">").append ("</sundry_code>"); valueXmlString.append("<sundry_code protect = \"1\">").append ("</sundry_code>");
diffAmtExch = (adv * Double.parseDouble(exchRate1)) - (adv * mexrate); diffAmtExch = (adv * Double.parseDouble(exchRate1)) - (adv * mexrate);
valueXmlString.append("<diff_amt__exch>").append("<![CDATA[" + diffAmtExch + "]]>").append("</diff_amt__exch>"); valueXmlString.append("<diff_amt__exch>").append("<![CDATA[" + diffAmtExch + "]]>").append("</diff_amt__exch>");
//Added by Nandkumar Gadkari on 22/08/18-----------------------Start-----------[auto populate tax class tax chap and tax env based on the taxes eneterd in the misc_voucher]
taxClass = findValue(conn, "tax_class" , "misc_voucher", "tran_id", refNo);
taxChap = findValue(conn, "tax_chap" , "misc_voucher", "tran_id", refNo);
taxEnv = findValue(conn, "tax_env" , "misc_voucher", "tran_id", refNo);
if(taxChap == null || taxChap.trim().length() == 0)
{
taxChap = "";
}
if(taxClass == null || taxClass.trim().length() == 0)
{
taxClass = "";
}
if(taxEnv == null || taxEnv.trim().length() == 0)
{
taxEnv = "";
}
valueXmlString.append("<tax_class>").append("<![CDATA[" + taxClass + "]]>").append("</tax_class>");
valueXmlString.append("<tax_chap>").append("<![CDATA[" + taxChap + "]]>").append("</tax_chap>");
valueXmlString.append("<tax_env>").append("<![CDATA[" + taxEnv + "]]>").append("</tax_env>");
setNodeValue(dom, "tax_class", taxClass);
setNodeValue(dom, "tax_chap", taxChap);
setNodeValue(dom, "tax_env", taxEnv);
//Added by Nandkumar Gadkari on 22/08/18-----------------------END-----------[auto populate tax class tax chap and tax env based on the taxes eneterd in the misc_voucher]
} }
else if(currentColumn.trim().equalsIgnoreCase("adj_amt")) else if(currentColumn.trim().equalsIgnoreCase("adj_amt"))
......
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