Commit 12308c5e authored by cpatil's avatar cpatil

modify for order_type while inserting n deleting into workorder


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95276 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ba886c8d
......@@ -5016,7 +5016,7 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
sqlMpsOrder = "DELETE FROM MPS_ORDER " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE = ? "+ " AND STATUS in ('N')";
sqlWorkOrder = "DELETE FROM WORKORDER " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE = ? " + " AND STATUS in ('M')";
sqlWorkOrder = "DELETE FROM WORKORDER " + "WHERE SITE_CODE = ? " + "AND ITEM_CODE = ? " + " AND ORDER_TYPE in ('M')"; // replace ORDER_TYPE inplace of STATUS column ... 17/06/14...
sqlDistDemand = "DELETE FROM DIST_DEMAND " + " WHERE STATUS = 'P' " + "AND SITE_CODE = ? " + "AND ITEM_CODE = ? ";
if (matPlan.equals("Y"))
......@@ -6263,7 +6263,8 @@ public class RunMRPPrc extends ProcessEJB implements RunMRPPrcLocal, RunMRPPrcRe
{
workOrder = getUniqueKey(xmlValues, mpsKeyStr, "work_order", "W-ORD");
pstmtWorkOrder.setString(1, workOrder);
pstmtWorkOrder.setString(2, ordType);
//pstmtWorkOrder.setString(2, ordType); // commented for inserting order type as M ... on 17/06/14
pstmtWorkOrder.setString(2, "M");
pstmtWorkOrder.setString(3, itemCode);
pstmtWorkOrder.setString(4, siteCode);
pstmtWorkOrder.setDouble(5, quantity);
......
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