Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0030671Localization Pack: SpainMulti Dimensional Tax Report Cash VATpublic2015-08-26 10:052015-08-26 10:32
vmromanos 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
vmromanos
37937
OBPS
0030671: 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 0030614 closed AtulOpenbravo java.lang.ArithmeticException: Rounding necessary error received when tax rate is defined with more than 2 decimals 
Issue History
2015-08-26 10:05vmromanosNew Issue
2015-08-26 10:05vmromanosAssigned To => AtulOpenbravo
2015-08-26 10:05vmromanosResolution time => 1440194400
2015-08-26 10:05vmromanosSupport ticket => 37937
2015-08-26 10:05vmromanosOBNetwork customer => Yes
2015-08-26 10:05vmromanosIssue generated from0030614
2015-08-26 10:05vmromanosRelationship addedrelated to 0030614
2015-08-26 10:15vmromanosStatusnew => scheduled
2015-08-26 10:30hgbotCheckin
2015-08-26 10:30hgbotNote Added: 0079742
2015-08-26 10:30hgbotStatusscheduled => resolved
2015-08-26 10:30hgbotResolutionopen => fixed
2015-08-26 10:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30.cashvat/rev/a85779ce06559f47e8f377bd4fdb2a48d5eed3f4 [^]
2015-08-26 10:32vmromanosNote Added: 0079744
2015-08-26 10:32vmromanosReview Assigned To => vmromanos
2015-08-26 10:32vmromanosStatusresolved => closed

Notes
(0079742)
hgbot   
2015-08-26 10:30   
Repository: erp/pmods/org.openbravo.module.invoiceTaxReportEnhanced30.cashvat
Changeset: a85779ce06559f47e8f377bd4fdb2a48d5eed3f4
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.cashvat/rev/a85779ce06559f47e8f377bd4fdb2a48d5eed3f4 [^]

Fixes Issue 30671: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/cashvat/api/MTRRecord.java
---
(0079744)
vmromanos   
2015-08-26 10:32   
Code review + testing OK

Available in version 1.0.7 (or higher)