Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0029194 | Openbravo ERP | 04. Warehouse management | public | 2015-02-26 12:44 | 2015-04-01 08:31 | |||||||
Reporter | umartirena | |||||||||||
Assigned To | umartirena | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | 3.0PR15Q1.2 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | aferraz | |||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | 3.0PR14Q4 | |||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0029194: [Cost Adjustments] / by zero error while calculating backdated cost for movement qty 0 receipt | |||||||||||
Description | / by zero error is obtained in Cost Adjustments while calculating backdated cost for movement qty 0 receipts. | |||||||||||
Steps To Reproduce | In pgadmin III, open m_inout_post function: * Comment the 3 following lines (not reproducible in pi due to this issue https://issues.openbravo.com/view.php?id=26163 [^]): IF v_Message_Qty != '' THEN RAISE EXCEPTION '%', '@Inline@ '||v_Message_Qty||' '||'@ProductNotNullAndMovementQtyZero@' ; --OBTG:-20000-- END IF; * Save the function. In live.builds as F&B International: * Create a Product for F&B España. Add a Purchase Pricelist of 10. * Go to Goods Receipt and create a Header: - Org: F&B España - Movement Date: 05/02/2015 * Add a line: - Product: The created product - Movement Qty: 10 * Complete it * Create another Goods Receipt Header: - Org: F&B España - Movement Date: 15/02/2015 * Add a line: - Product: The created product - Movement Qty: 0 * Complete it * Create another Goods Receipt Header: - Org: F&B España - Movement Date: 10/02/2015 * Add a line: - Product: The created product - Movement Qty: 12 * Complete it * Run Costing Background process * Realize that following error is obtained: ERROR org.openbravo.costing.CostingBackground - / 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.AverageCostAdjustment.getRelatedTransactionsByAlgorithm(AverageCostAdjustment.java:305) at org.openbravo.costing.CostingAlgorithmAdjustmentImp.searchRelatedTransactionCosts(CostingAlgorithmAdjustmentImp.java:160) | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Approved | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2015-03-09 09:31 | umartirena | Type | defect => backport | |||||||||
2015-03-09 09:31 | umartirena | Target Version | => 3.0PR15Q1.2 | |||||||||
2015-03-09 18:47 | hgbot | Checkin | ||||||||||
2015-03-09 18:47 | hgbot | Note Added: 0075342 | ||||||||||
2015-03-09 18:47 | hgbot | Status | scheduled => resolved | |||||||||
2015-03-09 18:47 | hgbot | Resolution | open => fixed | |||||||||
2015-03-09 18:47 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/67607f6caaeef3bbc200e13b54801928b42396ee [^] => http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/8ce0b518b9eae91e39b9afd4048eaa251b39ec3a [^] | |||||||||
2015-03-09 18:48 | aferraz | Note Added: 0075343 | ||||||||||
2015-03-09 18:48 | aferraz | Status | resolved => closed | |||||||||
2015-03-09 20:01 | dmitry_mezentsev | Tag Attached: Approved | ||||||||||
2015-04-01 08:06 | hgbot | Checkin | ||||||||||
2015-04-01 08:06 | hgbot | Note Added: 0076202 | ||||||||||
2015-04-01 08:06 | hgbot | Status | closed => resolved | |||||||||
2015-04-01 08:06 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/backports/3.0PR15Q1.2/rev/8ce0b518b9eae91e39b9afd4048eaa251b39ec3a [^] => http://code.openbravo.com/erp/backports/3.0PR15Q2/rev/8ce0b518b9eae91e39b9afd4048eaa251b39ec3a [^] | |||||||||
2015-04-01 08:31 | priyam | Status | resolved => closed | |||||||||
2015-04-01 08:31 | priyam | Note Added: 0076273 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|