Commit 9ad7b96c authored by dsawant's avatar dsawant

updated for quantity change


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96359 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fff04d2e
......@@ -513,11 +513,10 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
pstmt = null;
rs = null;
System.out.println("stkquantity>>"+stkquantity);*/
sql = "select sum(quantity) from distord_issdet where dist_order = ? and lot_sl = ? and item_code = ?";
sql = "select sum(quantity) from distord_issdet where dist_order = ? and item_code = ?";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,distOrder);
pstmt.setString(2,lotSl);
pstmt.setString(3,itemCode);
pstmt.setString(2,itemCode);
rs = pstmt.executeQuery();
if(rs.next())
{
......@@ -529,14 +528,9 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
rs = null;
System.out.println("detquantity>>trsn"+detquantity+">>>"+tranId+"<VCXCXc"+tranId.trim().length()+"}}");
if(tranId.trim().length() > 0)
{
totquantity = detquantity;
}
else
{
totquantity = detquantity + quantity;
}
......
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