Commit a164ae39 authored by prane's avatar prane

changes reverted

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214782 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 386d8850
...@@ -12,7 +12,6 @@ import ibase.webitm.ejb.dis.DistCommon; ...@@ -12,7 +12,6 @@ import ibase.webitm.ejb.dis.DistCommon;
import ibase.utility.CommonConstants; import ibase.utility.CommonConstants;
import ibase.webitm.ejb.ITMDBAccessEJB; import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.fin.FinCommon; import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.ejb.mfg.InvDemSuppTraceBean;
import ibase.webitm.ejb.sys.UtilMethods; import ibase.webitm.ejb.sys.UtilMethods;
//import ibase.webitm.reports.sun.PackingSlipSOrderFormulation; //import ibase.webitm.reports.sun.PackingSlipSOrderFormulation;
import ibase.webitm.utility.TransIDGenerator; import ibase.webitm.utility.TransIDGenerator;
...@@ -802,38 +801,9 @@ public class StockUpdate ...@@ -802,38 +801,9 @@ public class StockUpdate
pstmt.setString(40,this.refSerFor); pstmt.setString(40,this.refSerFor);
pstmt.setString(41,this.refIdFor); pstmt.setString(41,this.refIdFor);
int updCnt = update = pstmt.executeUpdate(); update = pstmt.executeUpdate();
System.out.println("No recore Insert invtrace ::- ["+update+"]"); System.out.println("No recore Insert invtrace ::- ["+update+"]");
pstmt.close(); pstmt.close();
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
if(updCnt > 0 )
{
InvDemSuppTraceBean invDemSupTrcBean = new InvDemSuppTraceBean();
HashMap demandSupplyMap = null;
if( !("D-ISS".equalsIgnoreCase(this.tranSer.trim()) || "S-DSP".equalsIgnoreCase(this.tranSer.trim())) )
{
demandSupplyMap = new HashMap();
demandSupplyMap.put("site_code", this.siteCode);
demandSupplyMap.put("item_code", this.itemCode);
demandSupplyMap.put("ref_ser", "STK");
demandSupplyMap.put("ref_id", "NA");
demandSupplyMap.put("ref_line", "NA");
demandSupplyMap.put("due_date", this.tranDate);
demandSupplyMap.put("demand_qty", 0.0);
demandSupplyMap.put("supply_qty", effQty);
demandSupplyMap.put("change_type", "A");
demandSupplyMap.put("chg_process", "T");
demandSupplyMap.put("chg_user", userId);
demandSupplyMap.put("chg_term", termId);
errString = invDemSupTrcBean.updateDemandSupply(demandSupplyMap, conn);
if(errString != null && errString.trim().length() > 0)
{
System.out.println("retString["+errString+"]");
return errString;
}
}
}
/**Added by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
} }
errString = updateStockMovement(conn); errString = updateStockMovement(conn);
...@@ -2841,36 +2811,7 @@ public class StockUpdate ...@@ -2841,36 +2811,7 @@ public class StockUpdate
System.out.println("CHG_USER :"); System.out.println("CHG_USER :");
System.out.println("CHG_TERM :"); System.out.println("CHG_TERM :");
int updCnt = pstmt.executeUpdate(); pstmt.executeUpdate();
/**Added by Pavan Rane 24dec19 start[to update demand/supply in summary table(RunMRP process) related changes]*/
if( updCnt > 0 )
{
InvDemSuppTraceBean invDemSupTrcBean = new InvDemSuppTraceBean();
HashMap demandSupplyMap = null;
if( !("D-ISS".equalsIgnoreCase(this.tranSer.trim()) || "S-DSP".equalsIgnoreCase(this.tranSer.trim())) )
{
demandSupplyMap = new HashMap();
demandSupplyMap.put("site_code", this.siteCode);
demandSupplyMap.put("item_code", this.itemCode);
demandSupplyMap.put("ref_ser", "STK");
demandSupplyMap.put("ref_id", "NA");
demandSupplyMap.put("ref_line", "NA");
demandSupplyMap.put("due_date", this.tranDate);
demandSupplyMap.put("demand_qty", 0.0);
demandSupplyMap.put("supply_qty", effQty);
demandSupplyMap.put("change_type", "A");
demandSupplyMap.put("chg_process", "T");
demandSupplyMap.put("chg_user", userId);
demandSupplyMap.put("chg_term", termId);
errString = invDemSupTrcBean.updateDemandSupply(demandSupplyMap, conn);
if(errString != null && errString.trim().length() > 0)
{
System.out.println("retString["+errString+"]");
return errString;
}
}
}
/**Added by Pavan Rane 24dec19 end[to update demand/supply in summary table(RunMRP process) related changes]*/
sql = "select fin_entity from site where site_code = '"+this.siteCode+"'"; sql = "select fin_entity from site where site_code = '"+this.siteCode+"'";
System.out.println("SQL :"+sql); System.out.println("SQL :"+sql);
......
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