Commit f747def7 authored by ngadkari's avatar ngadkari

Changes in finCommon for POrderIC and PoReceipt component daily exchange rate issue

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182199 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f8a42582
......@@ -1631,6 +1631,19 @@ public class FinCommon
PreparedStatement pstmt = null, pstmt1 = null;
ResultSet rs = null, rs1 = null;
java.sql.Timestamp tranDate = null;
// Added by Nandkumar Gadkari on 17MAR2018-----------Start----------
try
{
as_tran_date = genericUtility.getValidDateString(as_tran_date, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
tranDate = java.sql.Timestamp.valueOf(as_tran_date + " 00:00:00");
System.out.println("INSIDE NEW FINDATA");
}
catch(Exception e)
{
System.out.println("Exception :: [][getDailyExchRateSellBuy] ::"+e);
}
// Added by Nandkumar Gadkari on 17MAR2018-----------end----------
// GenericUtility genericUtility = GenericUtility.getInstance();
if (as_curr_code.trim().equalsIgnoreCase(as_curr_code__to.trim()))
{
......@@ -1640,8 +1653,9 @@ public class FinCommon
{
try
{
as_tran_date = genericUtility.getValidDateString(as_tran_date, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
tranDate = java.sql.Timestamp.valueOf(as_tran_date + " 00:00:00");
// commented by Nandkumar Gadkari on 17MAR2018
/*as_tran_date = genericUtility.getValidDateString(as_tran_date, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
tranDate = java.sql.Timestamp.valueOf(as_tran_date + " 00:00:00");*/
stmt = conn.createStatement();
sql = "SELECT FIN_ENTITY FROM SITE WHERE SITE_CODE ='"+as_login_site.trim()+"'";
rs = stmt.executeQuery(sql);
......
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