From d0911da11208eff1c0772d70093bd9acda9d1ae3 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Mon, 11 Jan 2010 11:15:59 +0000 Subject: [PATCH] Implementation the Safety Stock in MRP Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2928680 --- db/ddlutils/oracle/views/RV_PP_MRP.sql | 2 -- db/ddlutils/postgresql/views/RV_PP_MRP.sql | 2 -- migration/354a-trunk/oracle/657_FR_SafetyStock.sql | 14 +++++++------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/db/ddlutils/oracle/views/RV_PP_MRP.sql b/db/ddlutils/oracle/views/RV_PP_MRP.sql index 50f74820f2..a54e1b1961 100644 --- a/db/ddlutils/oracle/views/RV_PP_MRP.sql +++ b/db/ddlutils/oracle/views/RV_PP_MRP.sql @@ -35,7 +35,6 @@ mrp.pp_order_bomline_id, mrp.dd_order_id, mrp.dd_orderline_id, mrp.qty, -mrp.name, mrp.s_resource_id, mrp.planner_id, mrp.priority, @@ -84,7 +83,6 @@ null, --pp_order_bomline_id null, --mrp.dd_order_id, null, --mrp.dd_orderline_id, pp.safetystock - bomqtyonhand(pp.M_Product_ID,pp.M_Warehouse_ID, 0) AS qty, --mrp.qty, -null, --mrp.name, pp.s_resource_id, null, --planner_id null, --mrp.priority, diff --git a/db/ddlutils/postgresql/views/RV_PP_MRP.sql b/db/ddlutils/postgresql/views/RV_PP_MRP.sql index f84d3c9cd1..1c8edda0b9 100644 --- a/db/ddlutils/postgresql/views/RV_PP_MRP.sql +++ b/db/ddlutils/postgresql/views/RV_PP_MRP.sql @@ -35,7 +35,6 @@ mrp.pp_order_bomline_id, mrp.dd_order_id, mrp.dd_orderline_id, mrp.qty, -mrp.name, mrp.s_resource_id, mrp.planner_id, mrp.priority, @@ -84,7 +83,6 @@ null, --pp_order_bomline_id null, --mrp.dd_order_id, null, --mrp.dd_orderline_id, pp.safetystock - bomqtyonhand(pp.M_Product_ID,pp.M_Warehouse_ID, 0) AS qty, --mrp.qty, -null, --mrp.name, pp.s_resource_id, null, --planner_id null, --mrp.priority, diff --git a/migration/354a-trunk/oracle/657_FR_SafetyStock.sql b/migration/354a-trunk/oracle/657_FR_SafetyStock.sql index d0ca7d92da..3385fccaaf 100644 --- a/migration/354a-trunk/oracle/657_FR_SafetyStock.sql +++ b/migration/354a-trunk/oracle/657_FR_SafetyStock.sql @@ -65,13 +65,13 @@ null, --name null, --description null, --mrp.c_order_id null, --mrp.c_orderline_id -CURRENT_TIMESTAMP, --mrp.dateordered, -CURRENT_TIMESTAMP, --mrp.dateconfirm, -CURRENT_TIMESTAMP, --mrp.datepromised, -CURRENT_TIMESTAMP, --mrp.datestartschedule, -CURRENT_TIMESTAMP, --mrp.datefinishschedule, -CURRENT_TIMESTAMP, --mrp.datestart, -CURRENT_TIMESTAMP, --mrp.datesimulation, +SYSDATE, --mrp.dateordered, +SYSDATE, --mrp.dateconfirm, +SYSDATE, --mrp.datepromised, +SYSDATE, --mrp.datestartschedule, +SYSDATE, --mrp.datefinishschedule, +SYSDATE, --mrp.datestart, +SYSDATE, --mrp.datesimulation, 'CO', --mrp.docstatus, null, --mrp.m_forecast_id, null, --mrp.m_forecastline_id,