Commit 166cdb65 authored by vkadam's avatar vkadam

While checking in table 'item_lot_packsize' for existing record, check lot_no...

While checking in table 'item_lot_packsize' for existing record, check lot_no falls between 'lot_no_from' and 'lot_no_to'.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100116 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 54075665
...@@ -718,11 +718,11 @@ public class PlistGenFrmDistIssueSch implements Schedule ...@@ -718,11 +718,11 @@ public class PlistGenFrmDistIssueSch implements Schedule
* */ * */
if("Y".equalsIgnoreCase(itemLotReqd)) if("Y".equalsIgnoreCase(itemLotReqd))
{ {
sql4="select count(*) as COUNT from ITEM_LOT_PACKSIZE where item_code=? and lot_no__from=? and lot_no__to=?"; sql4="select count(*) as COUNT from ITEM_LOT_PACKSIZE where item_code=? and ? between lot_no__from and lot_no__to";
pstmt4=conn.prepareStatement(sql4); pstmt4=conn.prepareStatement(sql4);
pstmt4.setString(1, itemCode); pstmt4.setString(1, itemCode);
pstmt4.setString(2, lotNo); pstmt4.setString(2, lotNo);
pstmt4.setString(3, lotNo); // pstmt4.setString(3, lotNo);
rs2=pstmt4.executeQuery(); rs2=pstmt4.executeQuery();
if(rs2.next()) if(rs2.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