Commit b0c4717e authored by ssurve's avatar ssurve

extra quote removed in query which was throwing an exception


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94275 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1540147b
...@@ -1094,7 +1094,7 @@ public double getPriceListRate(String priceList, java.util.Date tranDate, String ...@@ -1094,7 +1094,7 @@ public double getPriceListRate(String priceList, java.util.Date tranDate, String
} }
if (type.equalsIgnoreCase("L")) // List Price if (type.equalsIgnoreCase("L")) // List Price
{ {
sql = "SELECT RATE FROM PRICELIST WHERE PRICE_LIST = '"+priceList+"' AND ITEM_CODE = ''"+itemCode+"' AND LIST_TYPE = 'L' AND EFF_FROM <= '"+tranDate+"' AND VALID_UPTO >= '"+tranDate+"'"; sql = "SELECT RATE FROM PRICELIST WHERE PRICE_LIST = '"+priceList+"' AND ITEM_CODE = '"+itemCode+"' AND LIST_TYPE = 'L' AND EFF_FROM <= '"+tranDate+"' AND VALID_UPTO >= '"+tranDate+"'";
rs = stmt.executeQuery(sql); rs = stmt.executeQuery(sql);
if (!rs.next()) if (!rs.next())
{ {
......
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