Commit 921a178a authored by ngadkari's avatar ngadkari

sch_attr column get from sorderdet and insert it into sorditem table

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@178229 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a8ba06db
......@@ -918,7 +918,7 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
int cnt=0,updCnt=0;
String consumeFc="",ordType="",custCode="",itemCode="",itemSer="",priceListDisc="",disVarValue="",lineNoContr="",contractNo="",quotNo="",itemCodeOrd="";
String lineNo="",siteCode="",itemFlg="",unit="",unitStd="",custItemRef="",lineType="";
String nature="",explev = "1.",expLev="";
String nature="",explev = "1.",expLev="", schAttr="";
double ordAmount=0.0,minShelfLife=0.0,minShelfPerc=0.0,maxLife=0.0,shelfLife=0.0,tempLife=0.0,maxShelfLife=0.0,qtyOrd=0.0;
double quantityStduom=0.0,rate=0.0,convQtyStduom=0.0;
Timestamp dspDate=null;
......@@ -952,10 +952,10 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
pstmt.close();
pstmt = null;
// get from sorddet
// get from sorddet // Nandkumar Gadkari --Start--- column added sch_attr --------- and set it into sorditem table------12-01-18---
sql="SELECT sale_order, line_no, site_code, item_code, item_code__ord, item_flg, " +
"quantity, unit, line_no__contr, unit__std, quantity__stduom, dsp_date, rate, " +
"min_shelf_life, max_shelf_life, cust_item__ref, nature, conv__qty_stduom,tax_chap FROM" +
"min_shelf_life, max_shelf_life, cust_item__ref, nature, conv__qty_stduom,tax_chap , sch_attr FROM" +
" sorddet WHERE sale_order = ? ORDER BY line_no";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, saleOrder);
......@@ -980,6 +980,7 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
rate= rs.getDouble("rate");
dspDate= rs.getTimestamp("dsp_date");
taxChap= rs.getString("tax_chap");
schAttr= rs.getString("sch_attr");
if(minShelfLife==0)
{
......@@ -1170,10 +1171,10 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
"cust_item__ref,order_date,order_type,dsp_date,rate,status,nature," +
"conv__qty_stdqty,cust_code__dlv, "
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[start]
+" qty_alloc, qty_desp ,tax_chap )"
+" qty_alloc, qty_desp ,tax_chap ,sch_attr )"
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[end]
+ " values "
+ "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ "(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
pstmt1=conn.prepareStatement(sql);
pstmt1.setString(1,saleOrder);
pstmt1.setString(2,lineNo);
......@@ -1208,7 +1209,8 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
pstmt1.setString(30,"0");
//Changed by Manish on 12/09/16 for allocated quantity and despatch quantity[end]
pstmt1.setString(31,taxChap);
pstmt1.setString(32,schAttr);
//Nandkumar Gadkari --end--- column added sch_attr --------- and set it into sorditem table------12-01-18---
pstmt1.executeUpdate();
pstmt1.close();
pstmt1=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