Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0030614Localization Pack: SpainMulti Dimensional Tax Reportpublic2015-08-20 10:432015-08-26 10:31
maite 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
vmromanos
37937
OBPS
0030614: java.lang.ArithmeticException: Rounding necessary error received when tax rate is defined with more than 2 decimals
java.lang.ArithmeticException: Rounding necessary error received when tax rate is defined with more than 2 decimals
1. Run Multidimensional Tax Report for any date and organization to check that any result is obtained
2. Access Tax Rate window for one of obtained rates and edit rate field to define more than 2 decimals. For example, instead of 21 set it as 21.123
3. Run Multidimensional Tax Report again using same filtering criteria and realize that java.lang.ArithmeticException: Rounding necessary error is received

In some countries is necessary to define tax rates with more than 2 decimals so report should support them
No tags attached.
related to defect 0030671 closed AtulOpenbravo java.lang.ArithmeticException: Rounding necessary error received when tax rate is defined with more than 2 decimals 
Issue History
2015-08-20 10:43maiteNew Issue
2015-08-20 10:43maiteAssigned To => jonalegriaesarte
2015-08-20 10:43maiteSupport ticket => 37937
2015-08-20 10:43maiteOBNetwork customer => Yes
2015-08-20 10:48maiteResolution time => 1440194400
2015-08-20 10:48maiteAssigned Tojonalegriaesarte => Triage Finance
2015-08-20 10:48maiteIssue Monitored: networkb
2015-08-25 22:10AtulOpenbravoAssigned ToTriage Finance => AtulOpenbravo
2015-08-25 22:11AtulOpenbravoStatusnew => scheduled
2015-08-25 22:11AtulOpenbravoNote Added: 0079726
2015-08-26 10:05vmromanosIssue cloned0030671
2015-08-26 10:05vmromanosRelationship addedrelated to 0030671
2015-08-26 10:25hgbotCheckin
2015-08-26 10:25hgbotNote Added: 0079740
2015-08-26 10:25hgbotStatusscheduled => resolved
2015-08-26 10:25hgbotResolutionopen => fixed
2015-08-26 10:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30/rev/80b2c892ca874b42d2ca6580aa90701a6dd489bd [^]
2015-08-26 10:27vmromanosReview Assigned To => vmromanos
2015-08-26 10:27vmromanosNote Added: 0079741
2015-08-26 10:27vmromanosStatusresolved => closed
2015-08-26 10:31vmromanosNote Added: 0079743

Notes
(0079726)
AtulOpenbravo   
2015-08-25 22:11   
Test Plan
- Run Multidimensional Tax Report for any date and organization to check that any result is obtained
- Access Tax Rate window for one of obtained rates and edit rate field to define more than 2 decimals. For example, instead of 21 set it as 21.123
- Run Multidimensional Tax Report again using same filtering criteria and check the report is shown successfully.
(0079740)
hgbot   
2015-08-26 10:25   
Repository: erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30
Changeset: 80b2c892ca874b42d2ca6580aa90701a6dd489bd
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Aug 26 01:28:49 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30/rev/80b2c892ca874b42d2ca6580aa90701a6dd489bd [^]

Fixes Issue 30614:java.lang.ArithmeticException: Rounding necessary error
received when tax rate is defined with more than 2 decimals

Problem is with the setscale method.

---
M src/org/openbravo/module/invoiceTaxReportEnhanced30/api/MTRRecord.java
---
(0079741)
vmromanos   
2015-08-26 10:27   
Code review + testing OK
(0079743)
vmromanos   
2015-08-26 10:31   
Available in version 3.0.27 (or higher)