Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014393Openbravo ERP06. Material requirement planning (MRP)public2010-09-01 17:092010-09-13 12:38
gorkaion 
gorkaion 
immediatecriticalalways
closedfixed 
20Gentoo
 
2.50MP22 
Core
No
0014393: Circular Reference error on Manufacturing MRP with negative expected productions
On an Manufacturing MRP process. Under the following conditions:
1. You have a production plan with a sequence that produceds 2 or more products.
2. You have demand for both products.
3. You have a work requirement for the production plan that has a more done quantity than expected quantity.(you can modify the donequantity in the database or create a work effort)

In this case the Manufacturing MRP finishes with Circular Reference error.
Create a Process Plan with a sequence that has 2 P+ products and 1 P-.
Create a Work Requirement for that Process Plan with negative quantity.
Create a Sales Forecast with demand for both P+ products.

Run a Manufacturing Plan that considers the Sales Forecast.
No tags attached.
Issue History
2010-09-01 17:09gorkaionNew Issue
2010-09-01 17:09gorkaionAssigned To => adrianromero
2010-09-01 19:38gorkaionDescription Updatedbug_revision_view_page.php?rev_id=790#r790
2010-09-01 19:41gorkaionAssigned Toadrianromero => gorkaion
2010-09-02 09:51hgbotCheckin
2010-09-02 09:51hgbotNote Added: 0030569
2010-09-02 09:51hgbotStatusnew => resolved
2010-09-02 09:51hgbotResolutionopen => fixed
2010-09-02 09:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cfa473aebc99cefe7a699021e7dd63230d72b718 [^]
2010-09-06 12:33gorkaionNote Added: 0030639
2010-09-06 12:33gorkaionStatusresolved => closed
2010-09-06 12:33gorkaionFixed in Version => 2.50MP22
2010-09-07 09:18hudsonbotCheckin
2010-09-07 09:18hudsonbotNote Added: 0030714
2010-09-13 12:38anonymoussf_bug_id0 => 3065195

Notes
(0030569)
hgbot   
2010-09-02 09:51   
Repository: erp/devel/pi
Changeset: cfa473aebc99cefe7a699021e7dd63230d72b718
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Wed Sep 01 19:24:34 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cfa473aebc99cefe7a699021e7dd63230d72b718 [^]

Fixed issue 14393.Fixed clause to consider only products that are used and not other produced products.

---
M src-db/database/model/functions/MRP_PROCESSPLAN.xml
---
(0030639)
gorkaion   
2010-09-06 12:33   
This issue is not reproducible after the fix of issues 0014392 and 0014394

I have tested that the issue is correctly fixed and agreed with QA that the issue can be closed.
(0030714)
hudsonbot   
2010-09-07 09:18   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/cfa473aebc99 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/4390fe5213a4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18274.obx [^]