Commit c884eefb authored by kshinde's avatar kshinde

BUG FIX demand prc

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@174842 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 82e10fbb
...@@ -273,12 +273,12 @@ public class DemandGenPrc extends ProcessEJB implements DemandGenPrcLocal,Demand ...@@ -273,12 +273,12 @@ public class DemandGenPrc extends ProcessEJB implements DemandGenPrcLocal,Demand
retString = saveData(loginSite,xmlString,conn);*/ retString = saveData(loginSite,xmlString,conn);*/
qtyStdUom1 = distCommon.getConvQuantityFact(unit, unitStd, itemCode, quantity+indQty, convQtyStduom, conn); qtyStdUom1 = distCommon.getConvQuantityFact(unit, unitStd, itemCode, quantity, convQtyStduom, conn);
qtyStdUom=Double.parseDouble((String)qtyStdUom1.get(1)); qtyStdUom=Double.parseDouble((String)qtyStdUom1.get(1));
String sql2="Update independent_demand set quantity = ? , quantity__std_uom= ? where tran_id= ? "; String sql2="Update independent_demand set quantity = ? , quantity__std_uom= ? where tran_id= ? ";
pstmt1=conn.prepareStatement(sql2); pstmt1=conn.prepareStatement(sql2);
pstmt1.setDouble(1,quantity+indQty); pstmt1.setDouble(1,quantity);
pstmt1.setDouble(2,qtyStdUom); pstmt1.setDouble(2,qtyStdUom);
pstmt1.setString(3,tranID); pstmt1.setString(3,tranID);
updcnt=pstmt1.executeUpdate(); updcnt=pstmt1.executeUpdate();
......
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