Commit ebddf369 authored by prahate's avatar prahate

Changes done to pass list type from price list

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@185744 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 365c8b12
......@@ -2919,6 +2919,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
* ,'','L',lc_qty) }
*/
if (priceList != null && priceList.trim().length() > 0) {
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,"
+ "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 <= ?"
......@@ -2926,10 +2927,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, priceList);
pstmt.setString(2, itemCode);
pstmt.setTimestamp(3, ldtDate);
pstmt.setString(3, lsListType);
pstmt.setTimestamp(4, ldtDate);
pstmt.setDouble(5, quantity);
pstmt.setTimestamp(5, ldtDate);
pstmt.setDouble(6, quantity);
pstmt.setDouble(7, quantity);
rs = pstmt.executeQuery();
if (rs.next()) {
lcMinRate = rs.getDouble("lc_min_rate");
......
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