Commit 7227ec9d authored by vvengurlekar's avatar vvengurlekar

MiscPayAct.java- call getTaxEnv, getTaxChap, getTaxClass method of distcommon


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196740 ce508802-f39f-4f6c-b175-0d175dae99d5
parent efea9a29
......@@ -25,6 +25,7 @@ import javax.ejb.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.dis.DistCommon;
//import ibase.webitm.utility.GenericUtility;
import ibase.system.config.*;
import java.text.SimpleDateFormat;
......@@ -456,7 +457,10 @@ conn = getConnection();
java.sql.Date refDate = null;
double exchRate = 0, netAmt = 0, payAmt = 0;
ConnDriver connDriver = new ConnDriver();
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
//Commented and Added below line by Varsha V on 05-02-19 to call getTaxEnv() method of DistCommon
//ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
DistCommon disCommon = new DistCommon();
//Ended line by Varsha V on 05-02-19 to call getTaxEnv() method of DistCommon
String tranIdHrd = "", payMode = "", bankCode = "", tranDate = "", payableAt = "", stanCode = "";
double hdrExchRate = 0, chngRate = 0, totalPaid = 0;
String taxClassHdr = "", taxChapHdr = "", taxEnvHdr = "", tranId ="";
......@@ -574,7 +578,10 @@ conn = getConnection();
{
if (taxChapHdr == null || taxChapHdr.trim().length() == 0)
{
taxChap = itmDBAccessEJB.getTaxChapter(itemCode, itemSer, 'S', code, siteCode, conn);
//Commented and added below line by Varsha V on 05-02-19 to call getTaxChap() method of DistCommon
//taxChap = itmDBAccessEJB.getTaxChapter(itemCode, itemSer, 'S', code, siteCode, conn);
taxChap = disCommon.getTaxChap(itemCode, itemSer, "S", code, siteCode, conn);
//Ended line by Varsha V on 05-02-19 to call getTaxChap() method of DistCommon
System.out.println("taxChap :"+taxChap);
valueXmlString.append("<tax_chap isSrvCallOnChg='0'>").append("<![CDATA[").append(taxChap).append("]]>").append("</tax_chap>\r\n");
}
......@@ -588,7 +595,10 @@ conn = getConnection();
{
if (taxClassHdr == null || taxClassHdr.trim().length() == 0)
{
taxClass = itmDBAccessEJB.getTaxClass('S', code, itemCode, siteCode, conn);
//Commented and added below line by Varsha V on 05-02-19 to call getTaxClass() method of DistCommon
//taxClass = itmDBAccessEJB.getTaxClass('S', code, itemCode, siteCode, conn);
taxClass = disCommon.getTaxClass("S", code, itemCode, siteCode, conn);
//Ended line by Varsha V on 05-02-19 to call getTaxClass() method of DistCommon
System.out.println("taxClass :"+taxClass);
valueXmlString.append("<tax_class isSrvCallOnChg='0'>").append("<![CDATA[").append(taxClass).append("]]>").append("</tax_class>\r\n");
}
......@@ -612,7 +622,10 @@ conn = getConnection();
{
stationTo = rs.getString(1);
}
taxEnv = itmDBAccessEJB.getTaxEnv(stationFr, stationTo, taxChap, taxClass, siteCode, conn);
//Commented and added below line by Varsha V on 05-02-19 to call getTaxEnv() method of DistCommon
//taxEnv = itmDBAccessEJB.getTaxEnv(stationFr, stationTo, taxChap, taxClass, siteCode, conn);
taxEnv = disCommon.getTaxEnv(stationFr, stationTo, taxChap, taxClass, siteCode, conn);
//Ended line by Varsha V on 05-02-19 to call getTaxEnv() method of DistCommon
System.out.println("taxEnv :"+taxEnv);
valueXmlString.append("<tax_env isSrvCallOnChg='0'>").append("<![CDATA[").append(taxEnv).append("]]>").append("</tax_env>\r\n");
}
......
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