Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0033197 | Openbravo ERP | 04. Warehouse management | public | 2016-06-08 18:16 | 2016-06-21 14:48 | |||||||
Reporter | ngarcia | |||||||||||
Assigned To | markmm82 | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0PR16Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | aferraz | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | 42091 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0033197: / by zero error when processing a landed cost with a goods receipt with more than one line and 0 cost | |||||||||||
Description | / by zero error when processing a landed cost with a goods receipt with more than one line and 0 cost | |||||||||||
Steps To Reproduce | As group admin role: Create two products Add a purchase price list of 0 to them Create a goods receipt and include both products Launch the Costing Background Process and check the cost of the associated transactions is 0 Create a Landed Cost Type: Landed Cost Distribution Algorithm: Distribution by Amount Create a Landed Cost Add a cost to it and select the previously created type Add the previously created goods receipt Try to process it and check the following error message is shown: / by zero The log shows: ERROR org.openbravo.costing.LandedCostProcessHandler - Error in LandedCostProcessHandler: / by zero java.lang.ArithmeticException: / by zero at java.math.BigDecimal.divideAndRound(BigDecimal.java:1424) at java.math.BigDecimal.divide(BigDecimal.java:1398) at java.math.BigDecimal.divide(BigDecimal.java:1513) at org.openbravo.costing.LandedCostDistributionByAmount.distributeAmount(LandedCostDistributionByAmount.java:110) at org.openbravo.costing.LandedCostProcess.distributeAmounts(LandedCostProcess.java:191) at org.openbravo.costing.LandedCostProcess.processLandedCost(LandedCostProcess.java:98) at org.openbravo.costing.LandedCostProcess.doProcessLandedCost(LandedCostProcess.java:298) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2016-06-08 18:16 | ngarcia | New Issue | ||||||||||
2016-06-08 18:16 | ngarcia | Assigned To | => Triage Finance | |||||||||
2016-06-08 18:16 | ngarcia | OBNetwork customer | => Yes | |||||||||
2016-06-08 18:16 | ngarcia | Modules | => Core | |||||||||
2016-06-08 18:16 | ngarcia | Support ticket | => 42091 | |||||||||
2016-06-08 18:16 | ngarcia | Resolution time | => 1467151200 | |||||||||
2016-06-08 18:16 | ngarcia | Triggers an Emergency Pack | => No | |||||||||
2016-06-08 18:16 | ngarcia | Issue Monitored: networkb | ||||||||||
2016-06-09 10:06 | aferraz | Assigned To | Triage Finance => markmm82 | |||||||||
2016-06-13 18:19 | markmm82 | Status | new => scheduled | |||||||||
2016-06-13 18:19 | markmm82 | Note Added: 0087209 | ||||||||||
2016-06-17 13:32 | aferraz | Relationship added | related to 0030017 | |||||||||
2016-06-17 14:32 | hgbot | Checkin | ||||||||||
2016-06-17 14:32 | hgbot | Note Added: 0087401 | ||||||||||
2016-06-17 14:32 | hgbot | Status | scheduled => resolved | |||||||||
2016-06-17 14:32 | hgbot | Resolution | open => fixed | |||||||||
2016-06-17 14:32 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/fc24781d4355e9d02c456de93fed1230403fc2b5 [^] | |||||||||
2016-06-17 14:32 | hgbot | Checkin | ||||||||||
2016-06-17 14:32 | hgbot | Note Added: 0087402 | ||||||||||
2016-06-17 14:33 | aferraz | Review Assigned To | => aferraz | |||||||||
2016-06-17 14:33 | aferraz | Note Added: 0087403 | ||||||||||
2016-06-17 14:33 | aferraz | Status | resolved => closed | |||||||||
2016-06-17 14:33 | aferraz | Fixed in Version | => 3.0PR16Q3 | |||||||||
2016-06-21 14:48 | hudsonbot | Checkin | ||||||||||
2016-06-21 14:48 | hudsonbot | Note Added: 0087726 | ||||||||||
2016-06-21 14:48 | hudsonbot | Checkin | ||||||||||
2016-06-21 14:48 | hudsonbot | Note Added: 0087727 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|