Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0027488 | Modules | Payment Aging Balance Report | public | 2014-08-28 10:04 | 2014-10-15 18:15 |
|
Reporter | maite | |
Assigned To | fsoto82 | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | |
Regression level | |
Review Assigned To | vmromanos |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0027488: "Error evaluation expression" SUMDOUBTFULTOTAL when running report |
Description | In that case, problem is with expression
$V{SUMDOUBTFULTOTAL}.divide( $V{SUMNETTOTAL}, 5, RoundingMode.HALF_UP ).multiply(new BigDecimal("100"))
because, under some circumstances, variable $V{SUMDOUBTFULTOTAL} is null or $V{SUMNETTOTAL} is zero |
Steps To Reproduce | Launch report where variable $V{SUMDOUBTFULTOTAL} is null or $V{SUMNETTOTAL} is zero |
Proposed Solution | Expressions containing SUMDOUBTFULTOTAL need to be reviewed verifying if variables are null or zero to properly handle situation in AgingScheduleDetailHTML.jrxml , AgingScheduleDetailPDFDoubtfulDebt.jrxml and AgingScheduleDetailXLSDoubtfulDebt.jrxml.
Expression needs to be changed to:
$V{SUMDOUBTFULTOTAL}.divide( $V{SUMNETTOTAL}.doubleValue() == 0 ? new BigDecimal("1"):$V{SUMNETTOTAL}, 5, RoundingMode.HALF_UP ).multiply(new BigDecimal("100"))
|
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | 27488.diff (3,074) 2014-08-28 10:16 https://issues.openbravo.com/file_download.php?file_id=7170&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2014-08-28 10:04 | maite | New Issue | |
2014-08-28 10:04 | maite | Assigned To | => dmiguelez |
2014-08-28 10:09 | maite | Issue Monitored: networkb | |
2014-08-28 10:16 | maite | File Added: 27488.diff | |
2014-09-01 16:29 | jonalegriaesarte | Resolution time | => 1411855200 |
2014-10-03 05:47 | fsoto82 | Status | new => scheduled |
2014-10-03 05:47 | fsoto82 | Assigned To | dmiguelez => fsoto82 |
2014-10-03 05:47 | fsoto82 | fix_in_branch | => pi |
2014-10-15 17:57 | hgbot | Checkin | |
2014-10-15 17:57 | hgbot | Note Added: 0070975 | |
2014-10-15 17:57 | hgbot | Status | scheduled => resolved |
2014-10-15 17:57 | hgbot | Resolution | open => fixed |
2014-10-15 17:57 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/mods/org.openbravo.agingbalance/rev/d8e87dec85b308fbbbc24ca04582ef5af5763fb7 [^] |
2014-10-15 17:58 | vmromanos | Review Assigned To | => vmromanos |
2014-10-15 17:58 | vmromanos | Note Added: 0070976 | |
2014-10-15 17:58 | vmromanos | Status | resolved => closed |
2014-10-15 18:15 | vmromanos | Note Added: 0070977 | |