Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014298Openbravo ERP04. Warehouse managementpublic2010-08-25 11:062012-04-02 06:12
RenateNieuwkoop 
Sandrahuguet 
normaltrivialalways
closedfixed 
5
2.50MP20 
 
Core
No
0014298: BOM: option 'product quantity must be on stock' doesn't seem to affect the outcome when left blank
When you leave the checkbox 'product quantity must be on stock' blank in the Bill of Materials Production, this should mean that you do not need stock for the components. However, when left blank, the error message about no stock appears anyway, so what's the use of the checkbox then.

See attached screenshot
In the livebuild environment for postgresql:
Setup Products to use:
Master Data Management || Product
Create a new record: TV 17'', then US Power cable:
'Search Key', 'Name', 'Description' = TV 17'' (US Power Cable)
'Production' = Y, 'Sale' = N
'Product Category' = semi-finished products, save record
[Price]: 'Price List Version' = Purchase 2006
Enter prices: 300/250/190 for TV 17'', 10/8/6 for US Power Cable, save record
Access menu level: Master Data Management || Product
[Product]: Add a new product
'Search Key', 'Name', 'Description' = TV 17'' US
'Product Category' = Supplies
'Bill of Materials' = Y, 'Purchase' = N, save record
[Price]: 'Price List Version' = Sales 2006, 'Prices' = 400/350/340, save record
[Bill of Materials]:
Create a new record: 'BOM product' = TV 17'', 'Quantity' = 1, save record
Create a new record: 'BOM product' = US Power Cable, 'Quantity' = 1, save record

Go to menu: Warehouse Management || Transactions || Bill of Materials Production Create a BOM Production for TV 17'' US
[BOM Production]: create a new record, 'Name' = US TV BOM, save record
[Production Plan]: create new record, 'Product' = TV 17'' US, 'Production Quantity' = 10, save record
[BOM Production]: generate lines within [I/O Products] by using the 'Create/Post Production' button once, leave option 'Product quantity must be on stock' blank (meaning that stock is not required), click 'OK'

See that the error message appear that there is no stock - see screenshot
Either remove the checkbox or make it work
VMA-Reviewed
related to defect 00136292.50MP20 closed sivaraman in Bom Production, error "insuficient stock" is returned 
depends on defect 0020069 closed Sandrahuguet Field and tab of bill of materials hidden in window Product 
has duplicate defect 0012859 closed Sandrahuguet m_production_run function doesn't validate if product has isstocked value set to 'N' and send NoEnoughStocked error 
png 250810nostockBOM.png (52,867) 2010-08-25 11:06
https://issues.openbravo.com/file_download.php?file_id=2927&type=bug
png
Issue History
2010-08-25 11:06RenateNieuwkoopNew Issue
2010-08-25 11:06RenateNieuwkoopAssigned To => adrianromero
2010-08-25 11:06RenateNieuwkoopFile Added: 250810nostockBOM.png
2010-08-25 11:10RenateNieuwkoopNote Added: 0030304
2010-08-25 11:12RenateNieuwkoopNote Edited: 0030304bug_revision_view_page.php?bugnote_id=0030304#r724
2010-08-25 11:13RenateNieuwkoopNote Edited: 0030304bug_revision_view_page.php?bugnote_id=0030304#r725
2011-06-03 10:59dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:12dalsasuaAssigned Todalsasua => jonalegriaesarte
2012-02-15 19:05iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 14:28vmromanosTag Attached: VMA-Reviewed
2012-03-20 10:41SandrahuguetAssigned Tovmromanos => Sandrahuguet
2012-03-20 10:41SandrahuguetIssue Monitored: Sandrahuguet
2012-03-20 10:41SandrahuguetIssue End Monitor: Sandrahuguet
2012-03-20 10:42SandrahuguetStatusnew => scheduled
2012-03-20 10:42Sandrahuguetfix_in_branch => pi
2012-03-20 13:50vmromanosRelationship addedrelated to 0013629
2012-03-20 14:09SandrahuguetRelationship addedrelated to 0012859
2012-03-21 12:12vmromanosRelationship addeddepends on 0020069
2012-03-21 18:08SandrahuguetNote Added: 0046622
2012-03-27 14:06hgbotCheckin
2012-03-27 14:06hgbotNote Added: 0046769
2012-03-27 14:06hgbotStatusscheduled => resolved
2012-03-27 14:06hgbotResolutionopen => fixed
2012-03-27 14:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/1f38c83325606636f7391a838fc44e59a0c9bc92 [^]
2012-03-27 14:07vmromanosNote Added: 0046770
2012-03-27 14:07vmromanosStatusresolved => closed
2012-03-27 14:08vmromanosRelationship replacedhas duplicate 0012859
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047241

Notes
(0030304)
RenateNieuwkoop   
2010-08-25 11:10   
(edited on: 2010-08-25 11:13)
Looks like this is reappearing of issue 13629, which was found in MP18 and supposedly fixed in MP20 by sivaraman

(0046622)
Sandrahuguet   
2012-03-21 18:08   
You must have seen the fields and tab in product window:
-field issummary
-field Bill of Materials
-button Verify BOM
-tab Bill of materials

Test plan:
-Create a new product called 'p1'
-Create a new product called 'p2'
-Create a new product called 'p':
  -bill of materials =yes
  -stocked=yes
  -product type=item
  -in tab bill of materials (include p1 y p2)
  -click in verify BOM

-Go to bill os materials
   -Create a new bill of materials
   -Create a production plan
      -Select 'p' product and Quantity=10

-Click the button Create/process production and the check is working correctly
(0046769)
hgbot   
2012-03-27 14:06   
Repository: erp/devel/pi
Changeset: 1f38c83325606636f7391a838fc44e59a0c9bc92
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Wed Mar 21 17:07:38 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1f38c83325606636f7391a838fc44e59a0c9bc92 [^]

Fixed issue 14298 Correct operation for 'product quantity must be on stock'
Correct operation for 'product quantity must be on stock'
check box in the Bill of materials window

---
M src-db/database/model/functions/M_PRODUCTION_RUN.xml
---
(0046770)
vmromanos   
2012-03-27 14:07   
code review + testing OK
(0047241)
hudsonbot   
2012-04-02 06:12   
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/7814864461ac [^]

Maturity status: Test