Commit 918cf8c8 authored by dpawar's avatar dpawar

remove lot_sl from validation sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96363 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4f3a6451
...@@ -503,11 +503,10 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -503,11 +503,10 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
} }
} }
sql = "select sum(quantity) from despatchdet where sord_no = ? and lot_sl = ? and item_code = ?"; sql = "select sum(quantity) from despatchdet where sord_no = ? and item_code = ?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1,sorderNo); pstmt.setString(1,sorderNo);
pstmt.setString(2,lotSl); pstmt.setString(2,itemCode);
pstmt.setString(3,itemCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
...@@ -519,11 +518,9 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa ...@@ -519,11 +518,9 @@ public class DespatchWiz extends ValidatorEJB implements DespatchWizLocal, Despa
rs = null; rs = null;
System.out.println("despatchQty--->>["+despatchQty+"]");//280 System.out.println("despatchQty--->>["+despatchQty+"]");//280
if(despId.length() > 0){
totquantity = despatchQty;
}else{
totquantity = despatchQty + quantity;//0+20=20 totquantity = despatchQty + quantity;//0+20=20
}
sql = "select sum(quantity) from sorddet where sale_order = ? and item_code = ?"; sql = "select sum(quantity) from sorddet where sale_order = ? and item_code = ?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
......
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