Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004885Openbravo ERP02. Master data managementpublic2008-09-09 16:482008-12-11 13:48
networkb 
Dowid 
immediateminorsometimes
closedfixed 
20
2.35MP5 
 
Core
No
0004885: The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error
When the product that is parameter of the function is BOM and has price 0, and the products that belong to the bug also have price 0 (in the pricelist_version passed to the fuctions) you get an error because you don't have enough cursors to execute.
It happen because is a recursive function and never stop in this case.
Instead of using this line
IF(v_Price=0) THEN

use this other more restrictive


SELECT ISBOM INTO v_isBom FROM M_PRODUCT WHERE M_PRODUCT_ID=Product_ID;
    
IF(v_Price=0 AND v_isBom='Y') THEN

remember to declare v_isBom.
No tags attached.
related to defect 0005215 closed Dowid Verify Bom button works incorrectly 
depends on backport 0005016 closed Dowid The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error 
depends on backport 0005017 closed Dowid The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error 
Issue History
2008-09-09 16:48networkbNew Issue
2008-09-09 16:48networkbAssigned To => cromero
2008-09-09 16:48networkbsf_bug_id0 => 2102168
2008-09-09 16:48networkbRegression testing => No
2008-09-11 12:27cromeroStatusnew => scheduled
2008-09-11 12:27cromeroNote Added: 0008994
2008-09-11 12:27cromeroAssigned Tocromero => rafaroda
2008-09-11 12:27cromerofix_in_branch => trunk
2008-09-11 12:28cromeroPrioritynormal => high
2008-09-11 12:28cromerofix_in_branchtrunk =>
2008-09-17 10:08cromeroAssigned Torafaroda => Dowid
2008-10-24 11:13cromeroPriorityhigh => immediate
2008-10-24 12:12DowidRelationship addeddepends on 0005215
2008-10-24 12:12DowidRelationship deleteddepends on 0005215
2008-10-24 12:13DowidRelationship addedrelated to 0005215
2008-10-27 10:15svnbotCheckin
2008-10-27 10:15svnbotNote Added: 0009755
2008-10-27 10:15svnbotStatusscheduled => resolved
2008-10-27 10:15svnbotResolutionopen => fixed
2008-10-27 10:15svnbotsvn_revision => 9237
2008-10-27 10:56svnbotCheckin
2008-10-27 10:56svnbotNote Added: 0009762
2008-10-27 10:56svnbotsvn_revision9237 => 9239
2008-12-11 13:48psarobeStatusresolved => closed
2008-12-11 13:48psarobeNote Added: 0011179

Notes
(0008994)
cromero   
2008-09-11 12:27   
This task should be done very carefully, because these functions are also used in the price calculation for Non BOM products.
(0009755)
svnbot   
2008-10-27 10:15   
Repository: openbravo
Revision: 9237
Author: dowid
Date: 2008-10-27 10:15:17 +0100 (Mon, 27 Oct 2008)

Fixed bug 0004885: The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error

---
U trunk/src-db/database/model/functions/M_BOM_PRICELIMIT.xml
U trunk/src-db/database/model/functions/M_BOM_PRICELIST.xml
U trunk/src-db/database/model/functions/M_BOM_PRICESTD.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=9237&sc=1 [^]
(0009762)
svnbot   
2008-10-27 10:56   
Repository: openbravo
Revision: 9239
Author: dowid
Date: 2008-10-27 10:56:08 +0100 (Mon, 27 Oct 2008)

Fixed bug 0004885: The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error

---
U trunk/src-db/database/model/functions/M_BOM_PRICELIMIT.xml
U trunk/src-db/database/model/functions/M_BOM_PRICELIST.xml
U trunk/src-db/database/model/functions/M_BOM_PRICESTD.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=9239&sc=1 [^]
(0011179)
psarobe   
2008-12-11 13:48   
cannot verify with that description