Commit 722baf43 authored by prahate's avatar prahate

Changes done to set list type.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185856 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b960a0b6
...@@ -2922,7 +2922,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -2922,7 +2922,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
lsListType = checkNullandTrim(distCommon.getPriceListType(priceList, conn)); lsListType = checkNullandTrim(distCommon.getPriceListType(priceList, conn));
sql = "select max(case when min_rate is null then 0 else min_rate end) as lc_min_rate," sql = "select max(case when min_rate is null then 0 else min_rate end) as lc_min_rate,"
+ "max(case when max_rate is null then 0 else max_rate end) as lc_max_rate" + "max(case when max_rate is null then 0 else max_rate end) as lc_max_rate"
+ " from pricelist where price_list = ? and item_code = ? and list_type = 'L' and eff_from <= ?" + " from pricelist where price_list = ? and item_code = ? and list_type = ? and eff_from <= ?"
+ " and valid_upto >= ? and min_qty <= ? and max_qty >= ?"; + " and valid_upto >= ? and min_qty <= ? and max_qty >= ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priceList); pstmt.setString(1, priceList);
......
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