Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038163 | Openbravo ERP | 09. Financial management | public | 2018-03-16 15:23 | 2018-03-29 13:07 |
|
Reporter | markmm82 | |
Assigned To | markmm82 | |
Priority | high | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | 3.0PR18Q2 | Fixed in Version | 3.0PR18Q2 | |
Merge Request Status | |
Review Assigned To | aferraz |
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 | 0038163: Tax calculation adjustment must be done in the highest variance tax |
Description | Calculating taxes in Price Included taxes we usually loose precision rounding numbers and then we check if an adjustment is needed. Now, We take the greatest tax(the tax with highest amount) to apply the adjustment. We have to take the tax which applying the adjustment results the lowest variance with exact amount.
- If taxes are more than expected we have to add the adjustment to the tax with highest variance(below amount) from exact value.
- If taxes are less than expected we have to add the adjustment to the tax with highest variance(above amount) from exact value. |
Steps To Reproduce | N/A |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0038160 | | closed | migueldejuana | Retail Modules | Tax calculation adjustment must be done in the tax with the lowest variance after adjustment | related to | design defect | 0032265 | | closed | aferraz | Openbravo ERP | [SER QA 1434] Taxes at document level are not properly calculated in some cases | depends on | defect | 0038207 | 3.0PR18Q2 | closed | markmm82 | Openbravo ERP | API change is required due to solution of issue 38163 |
|
Attached Files | 38163.diff (10,367) 2018-03-21 19:18 https://issues.openbravo.com/file_download.php?file_id=11666&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2018-03-16 15:23 | markmm82 | New Issue | |
2018-03-16 15:23 | markmm82 | Assigned To | => Triage Finance |
2018-03-16 15:23 | markmm82 | Modules | => Core |
2018-03-16 15:23 | markmm82 | Triggers an Emergency Pack | => No |
2018-03-16 15:23 | markmm82 | Assigned To | Triage Finance => markmm82 |
2018-03-16 15:23 | markmm82 | Status | new => scheduled |
2018-03-20 10:22 | aferraz | Relationship added | related to 0038160 |
2018-03-21 19:18 | aferraz | File Added: 38163.diff | |
2018-03-22 13:42 | aferraz | Relationship added | related to 0032265 |
2018-03-22 20:54 | markmm82 | Relationship added | causes 0038207 |
2018-03-23 11:28 | aferraz | Relationship replaced | blocks 0038207 |
2018-03-23 11:30 | aferraz | Category | Z. Others => 09. Financial management |
2018-03-26 18:13 | hgbot | Checkin | |
2018-03-26 18:13 | hgbot | Note Added: 0103531 | |
2018-03-26 18:13 | hgbot | Status | scheduled => resolved |
2018-03-26 18:13 | hgbot | Resolution | open => fixed |
2018-03-26 18:13 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f7cf839056890ac39c2d8d53f487d3b2912523b7 [^] |
2018-03-26 18:13 | hgbot | Checkin | |
2018-03-26 18:13 | hgbot | Note Added: 0103532 | |
2018-03-26 18:16 | hgbot | Checkin | |
2018-03-26 18:16 | hgbot | Note Added: 0103535 | |
2018-03-26 18:17 | aferraz | Relationship replaced | depends on 0038207 |
2018-03-26 18:34 | aferraz | Target Version | => 3.0PR18Q2 |
2018-03-26 18:36 | aferraz | Type | defect => design defect |
2018-03-26 18:36 | aferraz | Review Assigned To | => aferraz |
2018-03-26 18:36 | aferraz | Note Added: 0103545 | |
2018-03-26 18:36 | aferraz | Status | resolved => closed |
2018-03-26 18:36 | aferraz | Fixed in Version | => 3.0PR18Q2 |
2018-03-29 13:07 | hudsonbot | Checkin | |
2018-03-29 13:07 | hudsonbot | Note Added: 0103633 | |
2018-03-29 13:07 | hudsonbot | Checkin | |
2018-03-29 13:07 | hudsonbot | Note Added: 0103634 | |
Notes |
|
(0103531)
|
hgbot
|
2018-03-26 18:13
|
|
Repository: erp/devel/pi
Changeset: f7cf839056890ac39c2d8d53f487d3b2912523b7
Author: Mark <markmm82 <at> gmail.com>
Date: Sun Mar 25 18:46:54 2018 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/f7cf839056890ac39c2d8d53f487d3b2912523b7 [^]
Fixes issue 38163: Tax adjustment must be done in the closest variance tax
Adjusted the tax line that stays closest to the original amount (the one with the
lowest rounded tax amount - not rounded tax amount + adjustment amount).
---
M src-db/database/model/functions/C_INVOICELINETAX_ROUNDING.xml
M src-db/database/model/functions/C_INVOICELINETAX_ROUNDING_AMT.xml
M src-db/database/model/functions/C_INVOICETAX_ADJUSTMENT.xml
M src-db/database/model/functions/C_INVOICETAX_ROUNDING.xml
M src-db/database/model/functions/C_ORDERLINETAX_ROUNDING.xml
M src-db/database/model/functions/C_ORDERLINETAX_ROUNDING_AMT.xml
M src-db/database/model/functions/C_ORDERTAX_ADJUSTMENT.xml
M src-db/database/model/functions/C_ORDERTAX_ROUNDING.xml
M src-db/database/model/triggers/C_INVOICELINE_TRG2.xml
M src-db/database/model/triggers/C_ORDERLINE_TRG2.xml
---
|
|
|
(0103532)
|
hgbot
|
2018-03-26 18:13
|
|
Repository: erp/devel/pi
Changeset: ca0f109a23f9911e1a9a43ceb78843417722afe2
Author: Mark <markmm82 <at> gmail.com>
Date: Sun Mar 25 18:46:54 2018 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/ca0f109a23f9911e1a9a43ceb78843417722afe2 [^]
Related to issue 38163: Fixes TaxesTest suite
Fixes some tests of the TaxesTest suite, adapting them to the new adjustment logic.
---
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData117.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData118.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData119.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData120.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData125.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData126.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData127.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData128.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData133.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData134.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData135.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData136.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData141.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData142.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData143.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData144.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData149.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData150.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData151.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData152.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData157.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData158.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData159.java
M src-test/src/org/openbravo/test/taxes/data/TaxesTestData160.java
---
|
|
|
(0103535)
|
hgbot
|
2018-03-26 18:16
|
|
Repository: erp/devel/api-checks
Changeset: 25d8ddb5f22a2d5a7b6ddaee0bfee43e0f4e6edb
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Mar 26 18:15:57 2018 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/25d8ddb5f22a2d5a7b6ddaee0bfee43e0f4e6edb [^]
Fixes issue 38207: API change for issue 38163
---
M model/src-db/database/model/functions/C_INVOICELINETAX_ROUNDING.xml
M model/src-db/database/model/functions/C_INVOICELINETAX_ROUNDING_AMT.xml
M model/src-db/database/model/functions/C_INVOICETAX_ADJUSTMENT.xml
M model/src-db/database/model/functions/C_INVOICETAX_ROUNDING.xml
M model/src-db/database/model/functions/C_ORDERLINETAX_ROUNDING.xml
M model/src-db/database/model/functions/C_ORDERLINETAX_ROUNDING_AMT.xml
M model/src-db/database/model/functions/C_ORDERTAX_ADJUSTMENT.xml
M model/src-db/database/model/functions/C_ORDERTAX_ROUNDING.xml
M model/src-db/database/model/triggers/C_INVOICELINE_TRG2.xml
M model/src-db/database/model/triggers/C_ORDERLINE_TRG2.xml
---
|
|
|
|
|
|
|
|
|
|
|