Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0033553 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 05. Production management | major | always | 2016-07-28 10:56 | 2016-08-11 18:40 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | markmm82 | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 3.0PR16Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | e49203fbb0c9 | ||||
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 | aferraz | |||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 43048 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0033553: Division by zero error in Standard Costs Report if Decrease or Rejected fields are 0 for produced products in the Process Plan | |||||||
Description | Division by zero error in Standard Costs Report if Decrease or Rejected fields are 0 for produced products in the Process Plan. The report is shown empty | |||||||
Steps To Reproduce | As group admin role: Create a Process Plan, Version and Operation Add a record in the I/O Products tab: Production Type: Product Production (P+) Decrease: 0 Rejected: 0 Launch the Standard Costs Report and select the previously created plan and version Check the report is shown empty and the log shows: ERROR net.sf.jasperreports.engine.fill.JRFillSubreport - Fill 1: exception net.sf.jasperreports.engine.JRException: Error executing SQL statement for : ReportStandardCostsJR_subreport0 at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:240) ... Caused by: org.postgresql.util.PSQLException: ERROR: division by zero | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0088713) markmm82 (viewer) 2016-08-01 21:41 |
Test Plan As group admin role: Create a Process Plan, Version and Operation Add a record in the I/O Products tab: Production Type: Product Production (P+) Decrease: 0 Rejected: 0 Launch the Standard Costs Report and select the previously created plan and version Check the report is shown and log shows any error. |
(0088893) hgbot (developer) 2016-08-08 14:29 |
Repository: erp/devel/pi Changeset: e49203fbb0c9ae2d52c48db4fab1dd521e3edfb6 Author: Mark <markmm82 <at> gmail.com> Date: Mon Aug 01 02:13:20 2016 -0400 URL: http://code.openbravo.com/erp/devel/pi/rev/e49203fbb0c9ae2d52c48db4fab1dd521e3edfb6 [^] Fixes issue 33553: Avoid division by zero error in Standard Costs Report A Division by zero error in Standard Costs Report was happening if Decrease or Rejected fields are 0 for produced products in the Process Plan. To avoid it, a validation was included to the report. --- M src/org/openbravo/erpCommon/ad_reports/ReportStandardCostsJR_subreport0.jrxml --- |
(0088894) aferraz (viewer) 2016-08-08 14:30 |
Code review + Testing OK |
(0089047) hudsonbot (viewer) 2016-08-11 18:40 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/edaa05b1fb18 [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2016-07-28 10:56 | ngarcia | New Issue | |
2016-07-28 10:56 | ngarcia | Assigned To | => Triage Finance |
2016-07-28 10:56 | ngarcia | OBNetwork customer | => Yes |
2016-07-28 10:56 | ngarcia | Modules | => Core |
2016-07-28 10:56 | ngarcia | Support ticket | => 43048 |
2016-07-28 10:56 | ngarcia | Resolution time | => 1471471200 |
2016-07-28 10:56 | ngarcia | Triggers an Emergency Pack | => No |
2016-07-28 11:03 | ngarcia | Issue Monitored: networkb | |
2016-07-28 12:09 | aferraz | Assigned To | Triage Finance => markmm82 |
2016-07-28 18:08 | markmm82 | Status | new => acknowledged |
2016-07-29 15:25 | markmm82 | Status | acknowledged => scheduled |
2016-08-01 21:41 | markmm82 | Note Added: 0088713 | |
2016-08-08 14:29 | hgbot | Checkin | |
2016-08-08 14:29 | hgbot | Note Added: 0088893 | |
2016-08-08 14:29 | hgbot | Status | scheduled => resolved |
2016-08-08 14:29 | hgbot | Resolution | open => fixed |
2016-08-08 14:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e49203fbb0c9ae2d52c48db4fab1dd521e3edfb6 [^] |
2016-08-08 14:30 | aferraz | Review Assigned To | => aferraz |
2016-08-08 14:30 | aferraz | Note Added: 0088894 | |
2016-08-08 14:30 | aferraz | Status | resolved => closed |
2016-08-08 14:30 | aferraz | Fixed in Version | => 3.0PR16Q4 |
2016-08-11 18:40 | hudsonbot | Checkin | |
2016-08-11 18:40 | hudsonbot | Note Added: 0089047 |
Copyright © 2000 - 2009 MantisBT Group |