Commit b4287d0c authored by manohar's avatar manohar

in Edit mode duplicate validation slab_no considered


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93897 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5155b344
...@@ -429,7 +429,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -429,7 +429,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
Node childNode = null; Node childNode = null;
int ctr,currentFormNo=0; int ctr,currentFormNo=0;
int childNodeListLength; int childNodeListLength;
String itemCode = "", unit = "", listType = "", effFromStr = "", validUptoStr = "", lotNoFrom = "", lotNoTo = ""; String itemCode = "", unit = "", listType = "", effFromStr = "", validUptoStr = "", lotNoFrom = "", lotNoTo = "", slabno = "";
Timestamp effFrom =null, validUpto = null; Timestamp effFrom =null, validUpto = null;
try try
...@@ -480,6 +480,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -480,6 +480,7 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
validUptoStr = genericUtility.getColumnValue("valid_upto",dom); validUptoStr = genericUtility.getColumnValue("valid_upto",dom);
lotNoFrom = genericUtility.getColumnValue("lot_no__from",dom); lotNoFrom = genericUtility.getColumnValue("lot_no__from",dom);
lotNoTo = genericUtility.getColumnValue("lot_no__to",dom); lotNoTo = genericUtility.getColumnValue("lot_no__to",dom);
slabno = genericUtility.getColumnValue("slab_no",dom) ;
// end 14/11/13 manoharan duplicate checking to consider all parameter // end 14/11/13 manoharan duplicate checking to consider all parameter
System.out.println("price_list wfvalData :::: " + priceList); System.out.println("price_list wfvalData :::: " + priceList);
// 14/11/13 manoharan commented as always it will be manual // 14/11/13 manoharan commented as always it will be manual
...@@ -511,6 +512,11 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList ...@@ -511,6 +512,11 @@ public class PriceList extends ValidatorEJB implements PriceListLocal, PriceList
+ " and item_code = ? and unit = ? and list_type = ? " + " and item_code = ? and unit = ? and list_type = ? "
+ " and eff_from = ? and valid_upto = ? " + " and eff_from = ? and valid_upto = ? "
+ " and lot_no__from = ? and lot_no__to = ? "; + " and lot_no__from = ? and lot_no__to = ? ";
if ("E".equals(editFlag))
{
sql = sql + " and slab_no <> " + slabno ;
}
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,priceList); pstmt.setString(1,priceList);
pstmt.setString(2,itemCode); pstmt.setString(2,itemCode);
......
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