Commit fdef8c2b authored by prane's avatar prane

changes reverted

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214786 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4c8f3cb9
......@@ -11,7 +11,6 @@ import ibase.utility.CommonConstants;
import ibase.webitm.utility.*;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.mfg.ExplodeBom;
import ibase.webitm.ejb.mfg.InvDemSuppTraceBean;
import ibase.webitm.ejb.mfg.adv.RcpBackflushConfirm;
import ibase.webitm.ejb.sys.*;
import ibase.system.config.*;
......@@ -1386,7 +1385,6 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
InvAllocTraceBean invAllocTrace = null;
HashMap strAllocate = null;
//Manish Mhatre 16oct19 end [to de-allocate free qty customer stock]
Timestamp dlvDate = null;
try
{
//Manish Mhatre 16oct19 start [to de-allocate free qty customer stock]
......@@ -1396,8 +1394,6 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
//Manish Mhatre 16oct19 end [to de-allocate free qty customer stock]
DistCommon distCommon = new DistCommon();
ITMDBAccessEJB itmDBAccessLocal = new ITMDBAccessEJB();
InvDemSuppTraceBean invDemSupTrcBean = new InvDemSuppTraceBean();
HashMap demandSupplyMap = new HashMap();
//sql = "Select tran_date, site_code,tran_ser,supp_code,post_type , curr_code , exch_rate, channel_partner From porcp Where tran_id = ? ";
sql = "Select tran_date, site_code,tran_ser,supp_code,post_type , curr_code , exch_rate, channel_partner From porcp Where tran_id = ? ";
pstmt = conn.prepareStatement(sql);
......@@ -1865,7 +1861,7 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
// /////////////////////////////////////////////////////////////////////////////
if (purcOrder != null)
{
sql = "select quantity, dlv_qty, status, site_code, dlv_date " + " from porddet " + " Where Purc_order = ? And line_no = ?";
sql = "select quantity, dlv_qty, status, site_code " + " from porddet " + " Where Purc_order = ? And line_no = ?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, purcOrder);
pstmt1.setString(2, pordLine);
......@@ -1876,8 +1872,6 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
dlvQuantity = rs1.getDouble("dlv_qty");
ordStatus = rs1.getString("status");
siteCodeDet = rs1.getString("site_code");
/**Modified by Pavan Rane 24dec19 [fetching dlv_date to update demand/supply in summary table(RunMRP process) related changes]*/
dlvDate = rs1.getTimestamp("dlv_date");
}
pstmt1.close();
pstmt1 = null;
......@@ -2551,27 +2545,6 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
}
pstmtUpd.close();
pstmtUpd = null;
/**Modified by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
demandSupplyMap.put("site_code", siteCodeDet);
demandSupplyMap.put("item_code", itemCode);
demandSupplyMap.put("ref_ser", "P-ORD");
demandSupplyMap.put("ref_id", purcOrder);
demandSupplyMap.put("ref_line", pordLine);
demandSupplyMap.put("due_date",dlvDate );
demandSupplyMap.put("demand_qty", 0.0);
demandSupplyMap.put("supply_qty", quantity *(-1));//quantity_stuom - dlv_qty
demandSupplyMap.put("change_type", "C");
demandSupplyMap.put("chg_process", "T");
demandSupplyMap.put("chg_user", genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
demandSupplyMap.put("chg_term", genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"));
errString = invDemSupTrcBean.updateDemandSupply(demandSupplyMap, conn);
demandSupplyMap.clear();
if(errString != null && errString.trim().length() > 0)
{
System.out.println("errString["+errString+"]");
return errString;
}
/**Modified by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
}
// Changed By Pragyan on 25/02/15 to fix bug as suggested by
// Manohran sir
......
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