Commit ed42a1de 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@36764 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8fb54e4c
......@@ -892,21 +892,29 @@ public class GenReceiptIC extends ValidatorEJB implements GenReceiptICLocal, Gen
else if( currentColumn.trim().equalsIgnoreCase( "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));
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.setString(1, custCodeValue);
rSet = pstmt.executeQuery();
if( rSet.next() )
{
custName = checkNull(rSet.getString( "CUST_NAME" ));
}
valueXmlString.append("<cust_name><![CDATA[").append(custName).append("]]></cust_name>\r\n");
currencyCode = rSet.getString("CURR_CODE");
}
rSet.close(); // added By akhilesh on 10/01/13 to close the statement
rSet = null;
pstmt.close();
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