Commit f7df4212 authored by ngadkari's avatar ngadkari

removed item code filter

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200872 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 99f37ada
......@@ -1288,10 +1288,11 @@ public class PriceListConf extends ActionHandlerEJB implements PriceListConfLoca
{
lotnofr = LotNoFroma.get(i);
lotnoto = LotNoToa.get(i);
sql = "select max(slab_no) from pricelist where price_list = ? AND item_code = ? ";
sql = "select max(slab_no) from pricelist where price_list = ? ";
//+ " AND item_code = ? ";// removed item code filter by nandkumar gadkari on 16/05/19
pstmtSql = conn.prepareStatement(sql);
pstmtSql.setString(1, plist);
pstmtSql.setString(2, itemcode);
// pstmtSql.setString(2, itemcode);
rs = pstmtSql.executeQuery();
if (rs.next()) {
LineNo = rs.getInt(1);
......@@ -1341,10 +1342,11 @@ public class PriceListConf extends ActionHandlerEJB implements PriceListConfLoca
}
}
if (LineNo == 0) {
sql = "select max(slab_no) from pricelist where price_list = ? AND item_code = ? ";
sql = "select max(slab_no) from pricelist where price_list = ? ";
//+ " AND item_code = ? ";// removed item code filter by nandkumar gadkari on 16/05/19
pstmtSql = conn.prepareStatement(sql);
pstmtSql.setString(1, plist);
pstmtSql.setString(2, itemcode);
//pstmtSql.setString(2, itemcode);
rs = pstmtSql.executeQuery();
if (rs.next()) {
LineNo = rs.getInt(1);
......
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