Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005217Openbravo ERP02. Master data managementpublic2008-09-23 18:412008-12-09 11:53
PavelPonomarev 
Dowid 
normalminoralways
closedfixed 
10XP SP3
pi 
2.35MP10 
No
Core
No
0005217: Verify Bom button works incorrectly
When a user creates a Product and adds products to its BOM, he can take that highlevel BOM and add it to itself. Then, the user clicks on the Verify BOM button, and the system does _not_ show an error that should signal of the BOM tree being incorrect.

1. Navigate to Master Data Management || Product || Product
2. Search for a product with an existing BOM (ex. "foodkit" in trunk version)
3. Open found product
4. Master Data Management || Product || Product >> Bill of Materials
5. Create new BOM
6. Add multiple various products INCLUDING the current product (ex. "foodkit"). Save
7. Navigate to Master Data Management || Product || Product
8. Click "Verify BOM"

The system shows a success message, but the BOM tree is incorrect...
Modify M_PRODUCT_BOM_CHECK function using the attached patch.
No tags attached.
blocks defect 0005215 closed Dowid Verify Bom button works incorrectly 
Issue History
2008-09-23 18:41cromeroNew Issue
2008-09-23 18:41cromeroAssigned To => cromero
2008-09-23 18:41cromeroStatusnew => scheduled
2008-11-10 13:04cromeroAssigned Tocromero => rafaroda
2008-11-13 12:55DowidAssigned Torafaroda => Dowid
2008-11-13 13:01DowidStatusscheduled => resolved
2008-11-13 13:01Dowidsvn_revision => 9930
2008-11-13 13:01DowidResolutionopen => fixed
2008-11-13 13:01DowidNote Added: 0010248
2008-12-09 11:53psarobeRegression testing => No
2008-12-09 11:53psarobeStatusresolved => closed

Notes
(0010248)
Dowid   
2008-11-13 13:01   
The solution is to replace string:

SELECT v_IsBOM INTO v_IsBOM FROM M_Product WHERE M_Product_ID=v_Record_ID;

to:

SELECT IsBOM INTO v_IsBOM FROM M_Product WHERE M_Product_ID=v_Record_ID;


This bug has been fixed with bug
0005757: Temporary tables T_Selection and T_Selection2 have been ported from v2.22 to 2.35 improperly
Revision: 9930