Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024378 | Openbravo ERP | 07. Sales management | public | 2013-07-18 18:54 | 2013-08-26 12:23 |
|
Reporter | jonalegriaesarte | |
Assigned To | pramakrishnan | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0MP27 | Fixed in Version | 3.0MP27 | |
Merge Request Status | |
Review Assigned To | jonalegriaesarte |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0024378: Taxes are not correctly calculate in some cases |
Description | Taxes are not correctly calculate in some cases |
Steps To Reproduce | - Change tarifa de ventas to price including taxes
- Create a new sales order with one line to the first product in the list
- Notice that the values calculated are:
Unit price = 1.27
Tax = 0.26
Gross = 1.53
Notice that: 1.27*1.21 (applying 21%) = 1.5367 (rounded) = 1.54
How it should work:
Gross = 1.53
Unit price = gross/taxrate = 1.26
Tax = gross - unit = 0.27
|
Proposed Solution | |
Additional Information | |
Tags | Moved from MP26 to MP27 |
Relationships | related to | defect | 0024385 | 3.0MP27 | closed | pramakrishnan | Manual discounts are not properly applied in certain cases | related to | design defect | 0032265 | | closed | aferraz | [SER QA 1434] Taxes at document level are not properly calculated in some cases |
|
Attached Files | tax-calculation.patch (953) 2013-07-18 19:06 https://issues.openbravo.com/file_download.php?file_id=6274&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2013-07-18 18:54 | jonalegriaesarte | New Issue | |
2013-07-18 18:54 | jonalegriaesarte | Assigned To | => gorkaion |
2013-07-18 18:54 | jonalegriaesarte | Modules | => Core |
2013-07-18 18:54 | jonalegriaesarte | Triggers an Emergency Pack | => No |
2013-07-18 19:06 | gorkaion | File Added: tax-calculation.patch | |
2013-07-18 19:10 | gorkaion | Note Added: 0060105 | |
2013-07-18 19:10 | gorkaion | Assigned To | gorkaion => dmiguelez |
2013-07-18 19:17 | gorkaion | Note Edited: 0060105 | bug_revision_view_page.php?bugnote_id=0060105#r4903 |
2013-07-19 13:36 | gorkaion | Relationship added | related to 0024385 |
2013-07-29 09:52 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte |
2013-08-01 09:51 | jonalegriaesarte | Target Version | 3.0MP26 => 3.0MP27 |
2013-08-01 09:52 | jonalegriaesarte | Tag Attached: Moved from MP26 to MP27 | |
2013-08-01 09:53 | jonalegriaesarte | Assigned To | jonalegriaesarte => pramakrishnan |
2013-08-04 09:48 | pramakrishnan | Status | new => scheduled |
2013-08-04 09:48 | pramakrishnan | fix_in_branch | => pi |
2013-08-05 11:17 | hgbot | Checkin | |
2013-08-05 11:17 | hgbot | Note Added: 0060497 | |
2013-08-05 11:18 | hgbot | Status | scheduled => resolved |
2013-08-05 11:18 | hgbot | Resolution | open => fixed |
2013-08-05 11:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/cb5dd42e39375802065ba6c031cdb3b81c6918fc [^] |
2013-08-14 15:38 | pramakrishnan | Note Added: 0060594 | |
2013-08-14 15:38 | pramakrishnan | Status | resolved => new |
2013-08-14 15:38 | pramakrishnan | Resolution | fixed => open |
2013-08-14 15:38 | pramakrishnan | Review Assigned To | => jonalegriaesarte |
2013-08-14 15:38 | pramakrishnan | fix_in_branch | pi => |
2013-08-14 15:39 | pramakrishnan | Status | new => scheduled |
2013-08-14 15:39 | pramakrishnan | fix_in_branch | => pi |
2013-08-14 15:39 | pramakrishnan | Status | scheduled => resolved |
2013-08-14 15:39 | pramakrishnan | Resolution | open => fixed |
2013-08-16 20:31 | hudsonbot | Checkin | |
2013-08-16 20:31 | hudsonbot | Note Added: 0060626 | |
2013-08-26 12:23 | jonalegriaesarte | Note Added: 0060769 | |
2013-08-26 12:23 | jonalegriaesarte | Status | resolved => closed |
2013-08-26 12:23 | jonalegriaesarte | Fixed in Version | => 3.0MP27 |
2017-01-13 11:09 | aferraz | Relationship added | related to 0032265 |
Notes |
|
(0060105)
|
gorkaion
|
2013-07-18 19:10
(edited on: 2013-07-18 19:17) |
|
Because how taxes are calculated there is always a chance of differences due to rounding.
However it is possible to reduce them. The C_GET_NET_PRICE_FROM_GROSS procedure calculates the net price from the gross price. To do this it calculates a Tax Amount. This tax amount is being rounded to the Price Precision. Changing this rounding to a higher number results in more accurate results. Attached a patch that rounds to at least 50 digits the tax amount. It has only be tested with the given example in Oracle.
|
|
|
(0060497)
|
hgbot
|
2013-08-05 11:17
|
|
Repository: erp/devel/pi
Changeset: cb5dd42e39375802065ba6c031cdb3b81c6918fc
Author: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> openbravo.com>
Date: Sun Aug 04 18:01:41 2013 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/cb5dd42e39375802065ba6c031cdb3b81c6918fc [^]
Fixes Issue 24378: Taxes are not correctly calculate in some cases
---
M src-db/database/model/functions/C_GET_NET_PRICE_FROM_GROSS.xml
---
|
|
|
|
Reopened to update review assigned to |
|
|
|
|
|
(0060769)
|
jonalegriaesarte
|
2013-08-26 12:23
|
|
|