Commit 7e106a6b authored by manohar's avatar manohar

site_code__ship considered for stock allocation instead of site_code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91812 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1e95a822
......@@ -255,7 +255,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
+"ITEM.DESCR,SORDITEM.QUANTITY,"
+"SORDITEM.QUANTITY - SORDITEM.QTY_DESP - SORDITEM.QTY_ALLOC PENDING_QUANTITY,"
+"SORDITEM.QTY_ALLOC,SORDDET.PACK_INSTR,"
+"SORDER.SITE_CODE,SORDITEM.EXP_LEV "
+"SORDER.SITE_CODE__SHIP,SORDITEM.EXP_LEV "
+"FROM SORDDET,SORDER,SORDITEM,CUSTOMER,ITEM "
+"WHERE ( SORDER.SALE_ORDER = SORDDET.SALE_ORDER ) AND "
+"( SORDITEM.SALE_ORDER = SORDER.SALE_ORDER ) AND "
......@@ -503,7 +503,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
System.out.println("detailDom------------------->"+detailDom);
String childNodeName = "";
String errCode = "";
String siteCode = this.siteCode;
//String siteCode = this.siteCode; // 21/08/12 manoharan get the shipping site
String postOrderFg = this.postOrderFg;
String saleOrder = null;
String expLev = null ;
......@@ -724,6 +724,28 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
ConnDriver connDriver = new ConnDriver();
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
// 21/08/12 manoharan get the shipping site
getDataSql = "SELECT SITE_CODE__SHIP FROM SORSER WHERE SALE_ORDER = ? ";
pstmtStock = conn.prepareStatement(getDataSql);
pstmtStock.setString(1,saleOrder);
rs = pstmtStock.executeQuery();
System.out.println("siteCode------"+ siteCode);
if(rs.next())
{
siteCode = rs.getString(1);
}
rs.close();
rs = null;
pstmtStock.close();
pstmtStock = null;
// end 21/08/12 manoharan get the shipping site
System.out.println("siteCode------"+ siteCode);
getDataSql = "SELECT STOCK.LOT_NO,STOCK.LOT_SL,"
+"STOCK.LOC_CODE, "
+"STOCK.UNIT, "
......@@ -1092,6 +1114,7 @@ public class StockAllocationPrc extends ProcessEJB implements StockAllocationPrc
xmlValues ="<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
xmlValues = xmlValues + "<Header></Header>";
xmlValues = xmlValues + "<Detail1>";
xmlValues = xmlValues + "<site_code>" + siteCode + "</site_code>";
xmlValues = xmlValues +"</Detail1></Root>";
System.out.println("xmlValues :["+xmlValues+"]");
TransIDGenerator tg = new TransIDGenerator(xmlValues, "BASE", commonConstants.DB_NAME);
......
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