Commit 8ac766db authored by msharma's avatar msharma

to Stock deallocate for Site Code Ship


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93193 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 179cafc0
......@@ -669,6 +669,8 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocatio
PreparedStatement pstmt = null;
Statement st = null;
ResultSet rs=null;
String siteCodeShip="";
ConnDriver connDriver = new ConnDriver(); //added by rajendra on 02/11/07
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
......@@ -780,7 +782,25 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocatio
{
//Changed by sumit on 27/11/12 error msg if wave done condition end.
System.out.println("if calling...*....");
errString = sorderDeAllocate(saleOrder, lineNo, itemCode, DeallocQty, expLev,custCode,lotSl,lotNo,locCode,tranId,allocLineno);
//Added by manoj dtd 07/06/2013 to Stock deallocate for Site Code Ship
String getDataSql = "SELECT SITE_CODE__SHIP FROM SORDER WHERE SALE_ORDER = ? ";
pstmt = conn.prepareStatement(getDataSql);
pstmt.setString(1,saleOrder);
rs = pstmt.executeQuery();
System.out.println("siteCode------"+ siteCode);
if(rs.next())
{
siteCodeShip = rs.getString(1);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
errString = sorderDeAllocate(saleOrder, lineNo,siteCodeShip, itemCode, DeallocQty, expLev,custCode,lotSl,lotNo,locCode,tranId,allocLineno);
if (errString != null && errString.trim().length() > 0)
{
System.out.println("errString :"+errString);
......@@ -846,7 +866,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocatio
}
private String sorderDeAllocate(String saleOrder, String lineNo, String itemCode, double DeallocQty, String expLev,String custCode,String lotSl,String lotNo,String locCode,String tranId,String allocLineno ) throws ITMException
private String sorderDeAllocate(String saleOrder,String siteCodeShip, String lineNo, String itemCode, double DeallocQty, String expLev,String custCode,String lotSl,String lotNo,String locCode,String tranId,String allocLineno ) throws ITMException
{
System.out.println("updateSOrder calling ..............");
String updateSorditem = null,updateSordAllocDet=null;
......@@ -865,7 +885,7 @@ public class StockDeallocationPrc extends ProcessEJB implements StockDeallocatio
connDriver = null;
st = conn.createStatement();
invallocTraceMap.put("ref_ser","D-ALOC");
invallocTraceMap.put("site_code",siteCode);
invallocTraceMap.put("site_code",siteCodeShip);
invallocTraceMap.put("item_code",itemCode);
invallocTraceMap.put("loc_code",locCode);
invallocTraceMap.put("lot_no",lotNo);
......
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