Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0006282 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2008-11-30 23:02 | 2009-03-06 12:34 | |||
Reporter | mtaal | View Status | public | |||||
Assigned To | AinhoaPagola | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 11071 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0006282: Openbravo source code contains examples of incorrect use of the BigDecimal setScale method | |||||||
Description | The BigDecimal setScale method does not change the BigDecimal but returns a new instance. There are several places in the Openbravo code where the return value is not used: LineNetAmt.setScale(stdPrecision, BigDecimal.ROUND_HALF_UP); The correct above code is: LineNetAmt = LineNetAmt.setScale(stdPrecision, BigDecimal.ROUND_HALF_UP); The occurrences of this error can be found by searching for: setScale( in the Openbravo source code tree | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0011099) svnbot (viewer) 2008-12-09 20:02 |
Repository: openbravo Revision: 11071 Author: AinhoaPagola Date: 2008-12-09 20:02:17 +0100 (Tue, 09 Dec 2008) Fixes bug 0006282. Incorrect use of BigDecimal setScale method fixed. --- U trunk/src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java U trunk/src/org/openbravo/erpCommon/ad_actionButton/ExpenseSOrder.java U trunk/src/org/openbravo/erpCommon/ad_process/CreateCashFlowStatement.java U trunk/src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java --- https://dev.openbravo.com/websvn/openbravo/?rev=11071&sc=1 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2008-11-30 23:02 | mtaal | New Issue | |
2008-11-30 23:02 | mtaal | Assigned To | => rafaroda |
2008-11-30 23:02 | mtaal | sf_bug_id | 0 => 2367121 |
2008-11-30 23:02 | mtaal | OBNetwork customer | => No |
2008-11-30 23:02 | mtaal | Regression testing | => No |
2008-12-03 19:03 | pjuvara | Priority | normal => high |
2008-12-09 13:00 | pheenan | Assigned To | rafaroda => AinhoaPagola |
2008-12-09 20:02 | svnbot | Checkin | |
2008-12-09 20:02 | svnbot | Note Added: 0011099 | |
2008-12-09 20:02 | svnbot | Status | new => resolved |
2008-12-09 20:02 | svnbot | Resolution | open => fixed |
2008-12-09 20:02 | svnbot | svn_revision | => 11071 |
2009-03-06 12:34 | psarobe | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |