Commit 0d57dd80 authored by msingh's avatar msingh

Changed by Manish on 12/09/16 for allocated quantity and despatch quantity


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103323 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0e533d9c
...@@ -876,9 +876,12 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor ...@@ -876,9 +876,12 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
+ " item_code,item_flag,line_type,unit__ord,unit__ref,unit,qty_ord,qty_ref," + " item_code,item_flag,line_type,unit__ord,unit__ref,unit,qty_ord,qty_ref,"
+ "quantity,exp_lev, min_shelf_life,max_shelf_life,consume_fc,due_date," + + "quantity,exp_lev, min_shelf_life,max_shelf_life,consume_fc,due_date," +
"cust_item__ref,order_date,order_type,dsp_date,rate,status,nature," + "cust_item__ref,order_date,order_type,dsp_date,rate,status,nature," +
"conv__qty_stdqty,cust_code__dlv) " "conv__qty_stdqty,cust_code__dlv, "
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[start]
+" qty_alloc, qty_desp )"
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[end]
+ " values " + " values "
+ "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; + "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
pstmt1=conn.prepareStatement(sql); pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,saleOrder); pstmt1.setString(1,saleOrder);
pstmt1.setString(2,lineNo); pstmt1.setString(2,lineNo);
...@@ -908,6 +911,10 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor ...@@ -908,6 +911,10 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
pstmt1.setString(26,nature); pstmt1.setString(26,nature);
pstmt1.setDouble(27,convQtyStduom); pstmt1.setDouble(27,convQtyStduom);
pstmt1.setString(28,custCode); pstmt1.setString(28,custCode);
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[start]
pstmt1.setString(29,"0");
pstmt1.setString(30,"0");
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[end]
pstmt1.executeUpdate(); pstmt1.executeUpdate();
pstmt1.close(); pstmt1.close();
...@@ -2394,9 +2401,12 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor ...@@ -2394,9 +2401,12 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
+ " (exp_lev, sale_order, line_no, site_code, item_code__ord," + " (exp_lev, sale_order, line_no, site_code, item_code__ord,"
+ " item_flag,unit__ord,qty_ord,item_code__ref,unit__ref,qty_ref,item_code,item_ref," + " item_flag,unit__ord,qty_ord,item_code__ref,unit__ref,qty_ref,item_code,item_ref,"
+ "quantity,unit, line_type,min_shelf_life,max_shelf_life,nature," + + "quantity,unit, line_type,min_shelf_life,max_shelf_life,nature," +
"order_date,order_type,dsp_date,rate ) " "order_date,order_type,dsp_date,rate , "
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[start]
+" qty_alloc, qty_desp )"
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[start]
+ " values " + " values "
+ "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; + "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
pstmt2=conn.prepareStatement(sql); pstmt2=conn.prepareStatement(sql);
pstmt2.setString(1,expLev+mlevel); pstmt2.setString(1,expLev+mlevel);
pstmt2.setString(2,saleOrder); pstmt2.setString(2,saleOrder);
...@@ -2421,7 +2431,10 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor ...@@ -2421,7 +2431,10 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
pstmt2.setString(21,orderType); pstmt2.setString(21,orderType);
pstmt2.setTimestamp(22,dspDate); pstmt2.setTimestamp(22,dspDate);
pstmt2.setDouble(23,rate); pstmt2.setDouble(23,rate);
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[start]
pstmt2.setString(24,"0");
pstmt2.setString(25,"0");
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[end]
insertCnt= pstmt2.executeUpdate(); insertCnt= pstmt2.executeUpdate();
pstmt2.close(); pstmt2.close();
pstmt2=null; pstmt2=null;
......
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