Commit 2108b45b authored by mjadhav's avatar mjadhav

curr_code ,exch changed on curr_code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98532 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 83e20fcb
...@@ -892,21 +892,29 @@ public class GenReceiptIC extends ValidatorEJB implements GenReceiptICLocal, Gen ...@@ -892,21 +892,29 @@ public class GenReceiptIC extends ValidatorEJB implements GenReceiptICLocal, Gen
else if( currentColumn.trim().equalsIgnoreCase( "cust_code" ) ) else if( currentColumn.trim().equalsIgnoreCase( "cust_code" ) )
{ {
System.out.println("Enter in cust_code"); System.out.println("Enter in cust_code");
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginSite");
System.out.println("loginSite : "+loginSite);
custCodeValue = checkNull(genericUtility.getColumnValue("cust_code",currDom)); custCodeValue = checkNull(genericUtility.getColumnValue("cust_code",currDom));
sql = "SELECT CUST_NAME FROM CUSTOMER WHERE CUST_CODE = ?"; sql = "SELECT CUST_NAME,CURR_CODE FROM CUSTOMER WHERE CUST_CODE = ?";
pstmt = connObject.prepareStatement(sql); pstmt = connObject.prepareStatement(sql);
pstmt.setString(1, custCodeValue); pstmt.setString(1, custCodeValue);
rSet = pstmt.executeQuery(); rSet = pstmt.executeQuery();
if( rSet.next() ) if( rSet.next() )
{ {
custName = checkNull(rSet.getString( "CUST_NAME" )); custName = checkNull(rSet.getString( "CUST_NAME" ));
currencyCode = rSet.getString("CURR_CODE");
} }
valueXmlString.append("<cust_name><![CDATA[").append(custName).append("]]></cust_name>\r\n");
rSet.close(); // added By akhilesh on 10/01/13 to close the statement rSet.close(); // added By akhilesh on 10/01/13 to close the statement
rSet = null; rSet = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
System.out.println("currencyCode in (cust_code) :"+currencyCode);
exchangeRate = finCommon.getDailyExchRateSellBuy(currencyCode,"",loginSite, checkNull( currDate ), "S", connObject);
System.out.println("exchangeRatein (cust_code) :"+exchangeRate);
valueXmlString.append("<exch_rate>").append("<![CDATA["+exchangeRate+"]]>").append("</exch_rate>\r\n");
valueXmlString.append("<curr_code><![CDATA[").append(currencyCode).append("]]></curr_code>\r\n");
valueXmlString.append("<cust_name><![CDATA[").append(custName).append("]]></cust_name>\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