Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0005016
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 02. Master data managementminorsometimes2008-09-11 12:272008-12-18 22:19
ReporternetworkbView Statuspublic 
Assigned ToDowid 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branch2.40Fixed in SCM revision10372
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product Version2.35MP5SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0005016: The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error

DescriptionWhen 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.
Proposed SolutionInstead 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0004885 closedDowid The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error 

-  Notes
(0010041)
svnbot (reporter)
2008-11-06 15:17

Repository: openbravo
Revision: 9752
Author: dowid
Date: 2008-11-06 15:17:22 +0100 (Thu, 06 Nov 2008)

fixed bug 0005016: The BOM_PRICESTD, BOM_PRICELIMIT and BOM_PRICELIST function get an error

---
U branches/r2.40/src-db/database/model/functions/BOM_PRICELIMIT.xml
U branches/r2.40/src-db/database/model/functions/BOM_PRICELIST.xml
U branches/r2.40/src-db/database/model/functions/BOM_PRICESTD.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=9752&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-09-11 12:27 cromero New Issue
2008-09-11 12:27 cromero Assigned To => rafaroda
2008-09-11 12:27 cromero Status new => scheduled
2008-09-11 12:29 cromero Priority normal => high
2008-09-17 16:04 Dowid Assigned To rafaroda => Dowid
2008-09-23 18:18 PavelPonomarev Relationship added related to 0005215
2008-10-24 12:09 Dowid Relationship deleted related to 0005215
2008-11-06 15:17 svnbot Checkin
2008-11-06 15:17 svnbot Note Added: 0010041
2008-11-06 15:17 svnbot Status scheduled => resolved
2008-11-06 15:17 svnbot Resolution open => fixed
2008-11-06 15:17 svnbot svn_revision => 9752
2008-11-20 23:02 svnbot Checkin
2008-11-20 23:02 svnbot Note Added: 0010485
2008-11-20 23:02 svnbot svn_revision 9752 => 10372
2008-12-18 22:19 psarobe Regression testing => No
2008-12-18 22:19 psarobe Status resolved => closed
2009-02-02 16:28 rafaroda Note Deleted: 0010485


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker