Commit 5728cd7a authored by ngadkari's avatar ngadkari

Changes in calculation of pending Quantity method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@183379 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0d11b929
...@@ -2956,7 +2956,8 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -2956,7 +2956,8 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
{ {
Ls_DespId = "@@@@@@"; Ls_DespId = "@@@@@@";
} }
sql = " select sum(quantity) from sorditem " + //changes by nandkumar Gadkari on 10/04/18----------START ----------
sql = " select sum(quantity),sum(qty_desp) from sorditem " +
" where sale_order = ? " + " where sale_order = ? " +
" and line_no = ? " + " and line_no = ? " +
" and exp_lev = ? "; " and exp_lev = ? ";
...@@ -2968,6 +2969,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -2968,6 +2969,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
if (rs.next()) if (rs.next())
{ {
lc_SordQty = rs.getDouble(1); lc_SordQty = rs.getDouble(1);
lc_TotQty = rs.getDouble(2);
} }
rs.close(); rs.close();
rs = null; rs = null;
...@@ -2975,7 +2977,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -2975,7 +2977,7 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
pstmt = null; pstmt = null;
System.out.println("@@@@@2754 lc_SordQty["+lc_SordQty+"]"); System.out.println("@@@@@2754 lc_SordQty["+lc_SordQty+"]");
sql = " select sum(quantity) from despatchdet " + /*sql = " select sum(quantity) from despatchdet " +
" where sord_no = ? and line_no__sord = ? " + " where sord_no = ? and line_no__sord = ? " +
" and exp_lev = ? and desp_id <> ? "; " and exp_lev = ? and desp_id <> ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -2991,7 +2993,8 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -2991,7 +2993,8 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;*/
//changes by nandkumar Gadkari on 10/04/18--------------END-----------------
System.out.println("@@@@@2754 lc_TotQty["+lc_TotQty+"]"); System.out.println("@@@@@2754 lc_TotQty["+lc_TotQty+"]");
parentList = dom2.getElementsByTagName("Detail2"); parentList = dom2.getElementsByTagName("Detail2");
......
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