Commit 8687db7d authored by kshinde's avatar kshinde

Updated ejb file for getting 'double' value of exchange rate.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104401 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a7c1850c
package ibase.webitm.ejb.fin;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
//import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.GenericUtility;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
......@@ -39,14 +38,15 @@ public class MiscRcpPostSave extends ValidatorEJB implements MiscRcpPostSaveLoca
double advAmtAdj = 0, taxedAdjAmt = 0, advAmtDet = 0, taxAmtAdv = 0;
String hdrVoucherType="",exchRate="";
int lineno =1;
int cnt=0,cnt1=0,listCnt=0,exchrate = 0;
int cnt=0,cnt1=0,listCnt=0;//,exchrate = 0;
double exchrate=0;
try
{
E12GenericUtility genericUtility = new E12GenericUtility();
// GenericUtility genericUtility = GenericUtility.getInstance();
GenericUtility genericUtility = GenericUtility.getInstance();
dom = genericUtility.parseString(domString);
tranId = genericUtility.getColumnValue("tran_id",dom);
tranId = GenericUtility.getInstance().getColumnValue("tran_id",dom);
/**********COde For Fetching Data from Detail Window*****/
......@@ -109,7 +109,12 @@ public class MiscRcpPostSave extends ValidatorEJB implements MiscRcpPostSaveLoca
rs = pstmt.executeQuery();
if(rs.next())
{
exchrate = rs.getInt("exch_rate");
//exchrate = rs.getInt("exch_rate");
//Following code added by Kunal on 17/1/2017 [For getting double value of exchrate] start
exchrate = rs.getDouble("exch_rate");
//end of code added by Kunal
}
rs.close();
rs = null;
......
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