Commit 95203173 authored by cpatil's avatar cpatil

added lot_sl__org into stock update as compare with pb code and added missing...

added lot_sl__org  into stock update as compare with pb code and added missing fiels while stock transfer transaction


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93892 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cf442c1a
...@@ -39,6 +39,7 @@ public class StockUpdate ...@@ -39,6 +39,7 @@ public class StockUpdate
// //
String considerAllocate = "Y", partialUsed = ""; String considerAllocate = "Y", partialUsed = "";
// //
String lotSlOrg="";
/** /**
* Updates stock return error if fails * Updates stock return error if fails
* *
...@@ -801,9 +802,10 @@ public class StockUpdate ...@@ -801,9 +802,10 @@ public class StockUpdate
+" chg_date,chg_term,exp_date, alloc_qty,item_ser,mfg_date, site_code__mfg,potency_perc,pack_code," +" chg_date,chg_term,exp_date, alloc_qty,item_ser,mfg_date, site_code__mfg,potency_perc,pack_code,"
+" inv_stat,ltran_date,last_iss_date,gross_weight,tare_weight,net_weight,pack_instr,dimension,retest_date," +" inv_stat,ltran_date,last_iss_date,gross_weight,tare_weight,net_weight,pack_instr,dimension,retest_date,"
+"rate,rate__oh,acct_code__inv, cctr_code__inv,acct_code__oh,cctr_code__oh,supp_code__mfg,grade,gross_rate," +"rate,rate__oh,acct_code__inv, cctr_code__inv,acct_code__oh,cctr_code__oh,supp_code__mfg,grade,gross_rate,"
+" conv__qty_stduom,unit__alt,batch_no,last_phyc_date,qty_per_art,gross_wt_per_art,tare_wt_per_art,actual_rate,remarks, no_art,pack_ref)" +" conv__qty_stduom,unit__alt,batch_no,last_phyc_date,qty_per_art,gross_wt_per_art,tare_wt_per_art,actual_rate,remarks, no_art,pack_ref"
+" ,lot_sl__org )" // cpatil
+" values( ?,?,?, ?,?,?, ?,?,?, ?,?,?,?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?," +" values( ?,?,?, ?,?,?, ?,?,?, ?,?,?,?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?,"
+" ?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?)" ; +" ?,?,?, ?,?,?, ?,?,?, ?,?,?, ?,?,?)" ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,this.itemCode); pstmt.setString(1,this.itemCode);
...@@ -858,6 +860,7 @@ public class StockUpdate ...@@ -858,6 +860,7 @@ public class StockUpdate
pstmt.setString(45,this.remarks); pstmt.setString(45,this.remarks);
pstmt.setString(46,"0"); pstmt.setString(46,"0");
pstmt.setString(47,this.packRef); pstmt.setString(47,this.packRef);
pstmt.setString(48,this.lotSlOrg);
System.out.println("Query ::- ["+sql+"]"); System.out.println("Query ::- ["+sql+"]");
update = pstmt.executeUpdate(); update = pstmt.executeUpdate();
...@@ -1215,10 +1218,11 @@ public class StockUpdate ...@@ -1215,10 +1218,11 @@ public class StockUpdate
+" conv__qty_stduom,unit__alt,batch_no," +" conv__qty_stduom,unit__alt,batch_no,"
+" no_art,last_phyc_date,qty_per_art," +" no_art,last_phyc_date,qty_per_art,"
+" gross_wt_per_art,tare_wt_per_art,actual_rate," +" gross_wt_per_art,tare_wt_per_art,actual_rate,"
+" remarks,pack_ref,consider_allocate, partial_used, batch_size ) values " +" remarks,pack_ref,consider_allocate, partial_used, batch_size"
+" ,lot_sl__org ) values "
+" (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?," +" (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,"
+" ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?," +" ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,"
+" ?,?,?,?,?,?,?,?,?,?,?,?,?, ?)"; +" ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
//System.out.println("SQL :"+sql); //System.out.println("SQL :"+sql);
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1,this.itemCode); pstmt.setString(1,this.itemCode);
...@@ -1286,6 +1290,7 @@ public class StockUpdate ...@@ -1286,6 +1290,7 @@ public class StockUpdate
pstmt.setString(48,this.considerAllocate); pstmt.setString(48,this.considerAllocate);
pstmt.setString(49,this.partialUsed); pstmt.setString(49,this.partialUsed);
pstmt.setDouble(50,this.batchSize); pstmt.setDouble(50,this.batchSize);
pstmt.setString(51,this.lotSlOrg); // cpatil
System.out.println("ITEM_CODE :"+this.itemCode); System.out.println("ITEM_CODE :"+this.itemCode);
System.out.println("SITE_CODE :"+this.siteCode); System.out.println("SITE_CODE :"+this.siteCode);
...@@ -1746,6 +1751,10 @@ public class StockUpdate ...@@ -1746,6 +1751,10 @@ public class StockUpdate
{ {
this.batchSize = Double.parseDouble(updateStockMap.get("batch_size").toString()); this.batchSize = Double.parseDouble(updateStockMap.get("batch_size").toString());
} }
if(updateStockMap.get("lot_sl__org")!=null)
{
this.lotSlOrg = updateStockMap.get("lot_sl__org").toString();
}
}catch(Exception e){ }catch(Exception e){
System.out.println("Exception "+e); System.out.println("Exception "+e);
......
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