Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018789Openbravo ERP06. Material requirement planning (MRP)public2011-10-17 16:352011-11-15 17:09
maite 
ioritzCia 
normalminoralways
closedfixed 
5
 
2.50MP362.50MP36 
Core
No
0018789: 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.
blocks defect 00187883.0MP6 closed jonalegriaesarte Suggested Work Requirement with zero quantity should not become Work Requirement 
Issue History
2011-10-17 16:35maiteTypedefect => backport
2011-10-17 16:35maitefix_in_branch => 2.50
2011-10-17 16:36maiteIssue Monitored: networkb
2011-10-17 19:55jonalegriaesarteTarget Version3.0MP6 => 2.50MP36
2011-11-10 13:08jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2011-11-15 10:55hgbotCheckin
2011-11-15 10:55hgbotNote Added: 0042820
2011-11-15 10:55hgbotStatusscheduled => resolved
2011-11-15 10:55hgbotResolutionopen => fixed
2011-11-15 10:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/8b69b4fea671d80c306d5f74b4c657f6a1712c30 [^]
2011-11-15 17:09maiteNote Added: 0042849
2011-11-15 17:09maiteStatusresolved => closed
2011-11-15 17:09maiteFixed in Version => 2.50MP36

Notes
(0042820)
hgbot   
2011-11-15 10:55   
Repository: erp/stable/2.50
Changeset: 8b69b4fea671d80c306d5f74b4c657f6a1712c30
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Tue Nov 15 10:47:14 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/8b69b4fea671d80c306d5f74b4c657f6a1712c30 [^]

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

---
M src-db/database/model/functions/MRP_WORKREQUIREMENT.xml
---
(0042849)
maite   
2011-11-15 17:09   
verified