You are on page 1of 4

Assumptions 1. Demand for an SKU is the order placed at the Depot for that SKU.

Since for T&R, actual order is not captured currently, Depot sales can be taken as surrogate for demand for the time being. (Sale orders or Sale Invoice data to be taken as Sales) 2. Daily orders have been calculated as (Monthly orders /no. of days in month) Create a procedure which Calculates Monthly Orders in CASES having parameters PRODUCT_CODE, STOCK_TYPE, FISCAL_PERIOD. Also create a procedure/code for calculating the No of Days in a month. 3. Average lead times of supplies have been taken as (Distance between origin and depot 223), where a truck is assumed to travel 223 kms per day. Add a field DAILY_TRUCK_DISTANCE NUMBER(10,2) in SALE_SYSTEM_PARAMETERS 4. Std. deviations of lead times have been assumed. For lead times (LT) < 3 days, std. deviation =0, For LT 3-5 days, std. deviation = 0.5 days, For LT 5-10 days, std. deviation = 1 day and For LT>10 days, std. deviation = 1.5 days 5. Minimum safety stock is taken as 3 days for all SKUs. Eg: If based on existing demand for a particular SKU, safety stock as per formula is < 3 days, then safety stock for that SKU is taken as 3 days. Add a field MIN_SAFETY_STOCK_DAYS NUMBER(5) in SALE_SYSTEM_PARAMETERS 6. Dispatch from origin to a particular Depot has been assumed to happen only once a week on a pre-defined day (Eg: Dispatch to Depot D1 will be done only on every Tuesday). Therefore, if Re-order Point (ROP) <= 7 days, max stock level = 7 days; If ROP >7 days & < =14 days, max stock level = 14 days If ROP >14 & <= 21, days, max stock level = 21 days If ROP >=21, days, max stock level = 28 days 7. Service level has been taken as 95%. This means that 95 out of 100 times, the Depots will be able to meet the customers' requirements Add a field SERVICE_LEVEL NUMBER(5,2) in SALE_SYSTEM_PARAMETERS 8. At any point, inventory norms are calculated based on demand for the last 3 months (M-1, M-2 & M-3)

Add a field DEMAND_ON_LAST_MONTHS NUMBER(2) in SALE_SYSTEM_PARAMETERS

Formulae Used 1. Safety Stock = Z value x Sqrt( Avg Lead Time x Std Dev in demand^2 + Avg daily demand^2 x Std Dev in lead time^2) 2. Reorder Point = Safety stock in days + Lead time 3. Calculation of Safety Stock/ ROP/ Max inventory etc. in terms of cases is done as (No. of cases = No of days x Average daily demand in cases) Lead Time From Unit to Depot A new form is required to capture the lead time from Unit to Depot for Supplying the Material. Table Name: UNIT_TO_DEPO_LEAD_TIME Column Name DataType UTDLT_RECID NUMBER(16) UNIT_CODE VARCHAR2(2) DEPO_CODE VARCHAR2(2) LEAD_TIME_DAYS NUMBER(5) STATUS VARCHAR2(1)Active,Inactive CREATED_BY NOT NULL VARCHAR2(10) CREATED_ON NOT NULL DATE LAST_UPD_BY VARCHAR2(10) LAST_UPD_ON DATE PRIMARY KEY ---- UTDLT_RECID UNIQUE KEYUNIT_CODE,DEPO_CODE A new form to be made which will allow calculation of Safety Stock, Min & Max Stock levels company wise. This will be for a company for particular Fiscal Year & Period. The Data will be generated & stored in a new table. Table Name: FG_INVENTORY_NORMS Column Name DataType FIN_RECID NUMBER(16) FISCAL_YEAR NUMBER(4) FISCAL_PERIOD NUMBER(2) DEPO_CODE VARCHAR2(2) UNIT_CODE VARCHAR2(2) PRODUCT_CODE VARCHAR2(30) PRODUCT_STOCK_TYPE VARCHAR2(3) LAST_MONTH_SALE_3 NUMBER(16,3)

LAST_MONTH_SALE_2 NUMBER(16,3) LAST_MONTH_SALE_1 NUMBER(16,3) DAILY_SALE_3 NUMBER(16,3) DAILY_SALE_2 NUMBER(16,3) DAILY_SALE_1 NUMBER(16,3) AVG_DAILY_DEMAND NUMBER(16,3) STD_DEV_DEMAND NUMBER(16,3) -------------------------------------------------------------Use Oracle Function STDDEV_POP() LEAD_TIME NUMBER(5) STD_DEV_LEAD_TIMES NUMBER(5) SERVICE_LEVEL NUMBER(5,2) Z_VALUE NUMBER(20,14) CAL_SAFETY_STOCK_CASES NUMBER(16,3) CAL_SAFETY_STOCK_DAYS NUMBER(5) CAL_ROP_CASES NUMBER(16,3) CAL_ROP_DAYS NUMBER(5) CAL_MAX_STOCK_CASES NUMBER(16,3) CAL_MAX_STOCK_DAYS NUMBER(5) AVG_STOCK_LEVEL_CASES NUMBER(16,3) AVG_STOCK_LEVEL_DAYS NUMBER(5) AVG_ORDER_QTY_CASES NUMBER(16,3) AVG_ORDER_QTY_DAYS NUMBER(5) STATUS VARCHAR2(1)O-Open,Y-Posted CREATED_BY NOT NULL VARCHAR2(10) CREATED_ON NOT NULL DATE LAST_UPD_BY VARCHAR2(10) LAST_UPD_ON DATE PRIMARY KEY-- FIN_RECID UNIQUE KEY-- FISCAL_YEAR, FISCAL_PERIOD,DEPO_CODE, UNIT_CODE,PRODUCT_CODE ,PRODUCT_STOCK_TYPE

Calculate AVG_DAILY_DEMAND on the basis of the DEMAND_ON_LAST_MONTHS . A new approval form/Button on Previous form to be made which will update the PRODUCT_STOCK_DETAIL table for the of Safety Stock, Min & Max Stock levels.

Make a new package INVENTORY_NORMS_PKG

Make a procedure in this package AVG_DAILY_DEMAND having parameters COMPANY, PRODUCT_CODE,STOCK_TYPE , MFG_COMPANY

You might also like