Commit ef19ca8c authored by cpatil's avatar cpatil

merging from branch


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101326 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 10de8712
[Dolphin]
SortOrder=1
SortRole=date
Timestamp=2016,4,20,12,6,40
Version=3
ViewMode=1
......@@ -229,7 +229,9 @@ public class PayrollVoucherComIc extends ValidatorEJB implements PayrollVoucherC
double exchrate=0;
sitecode = genericUtility.getColumnValue("site_code__to",dom);
trandt = genericUtility.getColumnValue("tran_date__fr",dom);
sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ?";
currcodebase= genericUtility.getColumnValue("curr_code", dom);
System.out.println("Currency Code is"+ currcodebase );
/* sql="select a.curr_code from finent a, site b where b.fin_entity = a.fin_entity and b.site_code = ?";
System.out.println("SQL :: "+sql);
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,sitecode);
......@@ -243,7 +245,7 @@ public class PayrollVoucherComIc extends ValidatorEJB implements PayrollVoucherC
pstmt.close();
pstmt = null;
currcode = genericUtility.getColumnValue("curr_code",dom);
valueXmlString.append("<curr_code>").append(currcodebase).append("</curr_code>\r\n");
valueXmlString.append("<curr_code>").append(currcodebase).append("</curr_code>\r\n");*/
sql="select descr from currency where curr_code = ?";
System.out.println("SQL :: "+sql);
pstmt = conn.prepareStatement(sql);
......@@ -258,20 +260,7 @@ public class PayrollVoucherComIc extends ValidatorEJB implements PayrollVoucherC
pstmt.close();
pstmt = null;
System.out.println("currdescr1 :: "+currdescr1);
valueXmlString.append("<descr>").append(currdescr1).append("</descr>\r\n");
if(currcodebase != null && currcodebase.trim().length() > 0)
{
exchrate=finCommon.getDailyExchRateSellBuy( currcode,currcodebase,sitecode,trandt,"B",conn);
valueXmlString.append("<exch_rate>").append(exchrate).append("</exch_rate>\r\n");
}
if(currcodebase != currcode)
{
valueXmlString.append("<exch_rate protect = \"0\">").append("<![CDATA[" + exchrate + "]]>").append("</exch_rate >");
}
else
{
valueXmlString.append("<exch_rate protect = \"1\">").append("<![CDATA[" + exchrate + "]]>").append("</exch_rate >");
}
valueXmlString.append("<curr_descr>").append(currdescr1).append("</curr_descr>\r\n");
}
else if(currentColumn.equalsIgnoreCase("site_code__fr"))
{
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -15,6 +15,6 @@ import javax.ejb.Local;
public interface PurchaseVoucherGltracePreviewLocal extends ActionHandlerLocal
{
public String preview(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String preview(String tranID,String xtraParams, String forcedFlag, Connection conn) throws RemoteException,ITMException;
}
......@@ -14,6 +14,6 @@ import javax.ejb.Remote;
@Remote
public interface PurchaseVoucherGltracePreviewRemote extends ActionHandlerRemote
{
public String preview(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException;
public String preview(String tranID,String xtraParams, String forcedFlag, Connection conn) throws RemoteException,ITMException;
}
[Dolphin]
SortOrder=1
SortRole=date
Sorting=2
Timestamp=2014,1,29,14,59,8
Timestamp=2016,4,20,12,7,43
Version=3
ViewMode=1
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