Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015607Openbravo ERP06. Material requirement planning (MRP)public2011-01-11 12:502011-05-24 10:57
adrianromero 
adrianromero 
urgentmajoralways
closedfixed 
5
3.0RC3 
 
Core
No
0015607: Work Requirement taken twice into account when processing Manufacturing Plan
 Work Requirement taken twice into account when processing Manufacturing Plan
1.Production Management || Setup || Activity || Activity : create record choosing CostCenter=Assembly
2. Material Requirement (MRP) || Setup || Planning Method || Header: create record and add line to Transaction Type=Work Requirement
3. Production Management || Transactions || Process Plan || Process Plan : create record
4. Production Management || Transactions || Process Plan || Process Plan >> Version : create version from 01-01-2000 to 01-01-9999
5. Production Management || Transactions || Process Plan || Process Plan >> Version >> Operation : define operation for Activity already created and Cost Center Use Time=1 and Multiplier=1
6. Master Data Management || Product || Product : define products
  * P+A: Stocked=Y
         Production=Y
         Storage bin=ML1
         Assign created Process Plan
   Go to "Org Specific"tab and set Planing Method and Capacity=10000
  * Same for product P+ B
  * Same for product P- A
7. Production Management || Transactions || Process Plan || Process Plan >> Version >> Operation >> I/O Products : define 3 Product -->
  * two P+ with Component Cost= Rejected=Decrease=Quantity=1
  * one P- with Component Cost= Rejected=Decrease=Quantity=1
8. Production Management || Transactions || Work Requirement || Header : create WR for created Process Plan and Quantity=1700 and WR Creation Date=20/12/2010 and Starting Date=Ending date=31/12/2010.
Process Work requirement
9. Material Requirement (MRP) || Transactions || Manufacturing Plan || Header : create record with Document Date=20/12/2010 and Time Horizon=120.
Process Manufacturing Plan

Realize that WR has been taken into account two times
  
I is necessary to modify "Cur_Phase" to check if a work requirement has already been taken into account:

Something like: "and not exists (select 1 from mrp_run_production_line ....)"
closingMay2011
blocks backport 00154862.50MP26 closed adrianromero Work Requirement taken twice into account when processing Manufacturing Plan 
Issue History
2011-01-11 12:50adrianromeroNew Issue
2011-01-11 12:50adrianromeroAssigned To => adrianromero
2011-01-11 12:50adrianromeroModules => Core
2011-01-11 12:50adrianromeroIssue generated from0015486
2011-01-11 12:50adrianromeroRelationship addedblocks 0015486
2011-01-11 13:18adrianromeroStatusnew => scheduled
2011-01-11 13:18adrianromerofix_in_branch => pi
2011-01-13 10:07hgbotCheckin
2011-01-13 10:07hgbotNote Added: 0033614
2011-01-13 10:07hgbotStatusscheduled => resolved
2011-01-13 10:07hgbotResolutionopen => fixed
2011-01-13 10:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7e8867befb641a2ac7ad3b533841cb10abc0ee37 [^]
2011-01-13 10:10adrianromeroNote Added: 0033616
2011-05-24 10:03dalsasuaTag Attached: closingMay2011
2011-05-24 10:57dalsasuaStatusresolved => closed

Notes
(0033614)
hgbot   
2011-01-13 10:07   
Repository: erp/devel/pi
Changeset: 7e8867befb641a2ac7ad3b533841cb10abc0ee37
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Jan 13 10:05:56 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7e8867befb641a2ac7ad3b533841cb10abc0ee37 [^]

Fixes issue 0015607: Work Requirement taken twice into account when processing Manufacturing Plan
It has been added a new filter to not to include products that has been already processed

---
M src-db/database/model/functions/MRP_RUN_INITIALIZE.xml
---
(0033616)
adrianromero   
2011-01-13 10:10   
* Testing the issue

Follow the steps to reproduce and verify that now the products are not added twice. Verify also that if the product plan has only one P+ product the manufacturing plan is working as before the fix was applied.

This issue needs to be tested in both databases Oracle and Postgresql.

* Other areas affected

No other areas affected. Only the Manufacturing plan process has been modified.