Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018788Openbravo ERP06. Material requirement planning (MRP)public2011-10-17 16:352011-11-28 10:05
maite 
jonalegriaesarte 
normalminoralways
closedfixed 
5
 
3.0MP63.0MP6 
Core
No
0018788: Suggested Work Requirement with zero quantity should not become Work Requirement
After running Manufacturing Plan after some conditions, "Suggested Work Requirement" line with qty=0 is created. Then when running "Generate Work Requirements" process, Work Requirement document for zero is created. Suggested Work Requirements lines of zero should not become real Work Requirements
1. Define Material Requirement (MRP) || Setup || Planning Method and add Line for each kind of transaction
2. Define Production Management || Setup || Activity || Activity header
3. Define Product "P1" checked ad Production and NOT checked as Purchase
4. Define Production Management || Transactions || Process Plan || Process Plan for Main organization
5. Add Version from 01/01/2011 to 31/12/2011
6. Add Operation choosing already created Activity
7. Add IOProduct:
   7.1. Product=Paint ; Type=P- ; Quantity=1
   7.2. Product=p1 ; Type = P+ ; Quantity=1
8. Come back to Product P1 and aasociated process Plan
9. Go to Org Specific tab of Product p1 and add record for org=Main; associated Planning Method and Capacity=10000
10. Create Price for this product
11. Create Manufacturing header for Org=Main; today's date; time horizon =60; product=p1
12. Create Phisical inventory for 50 units of p1 and yesterday's date. Process inventory
13. Create Sales order for mcgiver BP and today's date; Add line for 5 unit of P1. Complete order
14. Go to Manufacturing Plan and run "Process Manufacturing Plan"
15. Realize that line for Suggested Work Requirement has been created with Quantity =0 (as there is enough stock)
16. Run process "Generate Work Requirements" and WR with zero quantity will be created.
No tags attached.
depends on backport 00187892.50MP36 closed ioritzCia Suggested Work Requirement with zero quantity should not become Work Requirement 
related to defect 00259743.0PR14Q3 closed pramakrishnan Suggested Material Requisition with zero quantity should not become Work Requirement 
Issue History
2011-10-17 16:35maiteNew Issue
2011-10-17 16:35maiteAssigned To => jonalegriaesarte
2011-10-17 16:35maiteModules => Core
2011-10-17 16:35maiteStatusnew => scheduled
2011-10-17 16:35maitefix_in_branch => pi
2011-10-17 16:36maiteTarget Version3.0MP6 =>
2011-10-17 16:36maitefix_in_branchpi =>
2011-10-17 19:55jonalegriaesarteTarget Version => 3.0MP6
2011-11-15 10:51hgbotCheckin
2011-11-15 10:51hgbotNote Added: 0042818
2011-11-15 10:51hgbotStatusscheduled => resolved
2011-11-15 10:51hgbotResolutionopen => fixed
2011-11-15 10:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a650496b7e3b40ecb0d30b4af247e98e07e5f1ed [^]
2011-11-15 17:04hudsonbotCheckin
2011-11-15 17:04hudsonbotNote Added: 0042848
2011-11-28 10:04jonalegriaesarteNote Added: 0043393
2011-11-28 10:04jonalegriaesarteStatusresolved => closed
2011-11-28 10:05jonalegriaesarteFixed in Version => 3.0MP6
2014-03-12 17:36VictorVillarRelationship addedrelated to 0025974

Notes
(0042818)
hgbot   
2011-11-15 10:51   
Repository: erp/devel/pi
Changeset: a650496b7e3b40ecb0d30b4af247e98e07e5f1ed
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Mon Nov 14 13:43:37 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a650496b7e3b40ecb0d30b4af247e98e07e5f1ed [^]

Fixes issue 18788: Suggested Work Requirement with zero quantity
should not become Work Requirement.

---
M src-db/database/model/functions/MRP_WORKREQUIREMENT.xml
---
(0042848)
hudsonbot   
2011-11-15 17:04   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/22d704d9f2e8 [^]

Maturity status: Test
(0043393)
jonalegriaesarte   
2011-11-28 10:04   
Issue verified following the steps to reproduce. The issue was solved by ioritzCia