Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011135Openbravo ERP04. Warehouse managementpublic2009-10-26 18:092009-11-24 00:00
networkb 
rafaroda 
highminoralways
closedno change required 
5
2.50MP7 
2.50MP10 
Core
No
0011135: Insufficent stock in the line of produced product in Bill of Materials production window
Using Bill of Materials Window, a product is produced (with allow negative checked, Entity). After that, a returned is created. Same values but negative.

Finally, Entity is checked to not allow negative stocks.
A new BOM production is launched and this message appears:

      
Error:
Insufficient stock: In line 10

However, this line is the produced product. It has no sense.
Check that Entity in General setup > Client > Client > Information, Allow Negative Stock is active.
Go to Warehouse management > Transactions > Bill of Materials Production. Create a new record.
Go to Production tab, and generate a new entry (select Foodkit, 2 as amount).
Go to Header tab and process it.
Go to I/O Products and find Foodkit. Select an attribute.
Go to Header and process it again.
Create a new register in the same window.
Go to Production tab, and generate a new entry (select Foodkit, -2 as amount).
Go to Header tab and process it.
Go to I/O Products and find Foodkit. Select an attribute.
Go to Header and process it.
Now, go back to General setup > Client > Client > Information, Allow Negative Stock is deactive.
Go to Warehouse management > Transactions > Bill of Materials Production. Create a new record.
Go to Production tab, and generate a new entry (select Foodkit, 2 as amount).
Go to Header tab and process it.
Go to I/O Products and find Foodkit. Select an attribute.
Go to Header and process it again. Error appears
No tags attached.
related to defect 00114862.50MP10 closed harikrishnan "Allow negative stock" does not chech if products have negative stock 
Issue History
2009-10-26 18:09networkbNew Issue
2009-10-26 18:09networkbAssigned To => rafaroda
2009-10-28 15:45rafarodaPriorityimmediate => high
2009-10-28 15:45rafarodaStatusnew => scheduled
2009-11-13 05:56harikrishnanAssigned Torafaroda => harikrishnan
2009-11-18 08:46rafarodaNote Added: 0021941
2009-11-23 08:57rafarodaNote Added: 0022085
2009-11-23 08:57rafarodaAssigned Toharikrishnan => rafaroda
2009-11-23 08:57rafarodaStatusscheduled => feedback
2009-11-23 13:18psarobeNote Added: 0022111
2009-11-23 13:18psarobeStatusfeedback => closed
2009-11-23 13:18psarobeResolutionopen => no change required
2009-11-24 00:00anonymoussf_bug_id0 => 2902799
2009-11-25 14:19rafarodaRelationship addedrelated to 0011486

Notes
(0021941)
rafaroda   
2009-11-18 08:46   
Functional documentation at http://wiki.openbravo.com/wiki/How-to_BOM_Production [^]
(0022085)
rafaroda   
2009-11-23 08:57   
The behavior reproduces with these easier steps, however seems not to be an issue but a correct message:
1) Navigate to General Setup || Client || Client || Client >> Information and de-activate the Allow Negative Stock.
2) Navigate to Master Data Management || Product and create a new record:
* Name = Work kit
* Bill of Materials = Yes
3) Navigate to Bill of Materials and create a new record:
* Product = Boots
* BOM Quantity = 2
4) Navigate to Warehouse Management || Transactions || Bill of Materials Production || BOM Production and create a new record:
* Name = Work kit production +2
5) Navigate to Production Plan tab and create a new record:
* Product = Work kit
* Production Quantity = -2
6) Navigate back to BOM Production and click on Create/Post Production button.
7) Navigate to Production Plan then to I/O Products and see that:
* Work kit movement quantity = -2
* Boots movement quantity = 4
8) Navigate back to BOM Production and click again on Create/Post Production button.

The error message "Insufficient stock: In line 10" displays (product in line 10 is Work kit). From a stock perspective, this message is correct: you can not remove stock of Work kit product since there is not.
(0022111)
psarobe   
2009-11-23 13:18   
What the end user has to do is to adjust the quantity of that product from -2 to 0.