Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035471 | Openbravo ERP | 09. Financial management | public | 2017-03-09 17:16 | 2017-03-20 15:12 |
|
Reporter | aferraz | |
Assigned To | aferraz | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | Professional Appliance |
Product Version | | |
Target Version | 3.0PR17Q2 | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | vmromanos |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | Pre packaging ( pi ) |
Regression date | 2017-03-03 |
Regression introduced in release | pi |
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/86dcf5d294d9 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0035471: Order line amounts and taxes added by Add Pack not rounded when booking |
Description | OrderLine net amount, OrderLineTax tax base and tax amount and OrderTax tax base and tax amount not rounded for lines added by Add Pack when completing the document |
Steps To Reproduce | Install org.openbravo.retail.discounts module.
As White Valley Group Admin:
- Create a new Sales Order for Arturo Montoro.
- Click on Add Pack and press Ok.
- Book the order.
- Check in database C_OrderLine.LineNetAmt, C_OrderLineTax.TaxBaseAmt, C_OrderLineTax.TaxAmt, C_OrderTax.TaxBaseAmt and C_OrderTax.TaxAmt are not rounded to currency standard precision. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | design defect | 0032265 | | closed | aferraz | [SER QA 1434] Taxes at document level are not properly calculated in some cases |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-09 17:16 | aferraz | New Issue | |
2017-03-09 17:16 | aferraz | Assigned To | => aferraz |
2017-03-09 17:16 | aferraz | Modules | => Core |
2017-03-09 17:16 | aferraz | Triggers an Emergency Pack | => No |
2017-03-09 17:17 | aferraz | Relationship added | caused by 0032265 |
2017-03-09 17:34 | aferraz | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=14761#r14761 |
2017-03-09 17:35 | aferraz | Regression level | => Pre packaging ( pi ) |
2017-03-09 17:35 | aferraz | Regression date | => 2017-03-03 |
2017-03-09 17:35 | aferraz | Regression introduced in release | => pi |
2017-03-09 17:35 | aferraz | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/86dcf5d294d9 [^] |
2017-03-10 10:26 | hgbot | Checkin | |
2017-03-10 10:26 | hgbot | Note Added: 0094901 | |
2017-03-10 10:26 | hgbot | Status | new => resolved |
2017-03-10 10:26 | hgbot | Resolution | open => fixed |
2017-03-10 10:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/af56683ab963a4ab97696134f4adc6bd6f274e76 [^] |
2017-03-10 10:26 | hgbot | Checkin | |
2017-03-10 10:26 | hgbot | Note Added: 0094902 | |
2017-03-10 11:27 | hgbot | Checkin | |
2017-03-10 11:27 | hgbot | Note Added: 0094905 | |
2017-03-10 16:05 | hgbot | Checkin | |
2017-03-10 16:05 | hgbot | Note Added: 0094926 | |
2017-03-15 20:21 | hudsonbot | Checkin | |
2017-03-15 20:21 | hudsonbot | Note Added: 0095285 | |
2017-03-15 20:21 | hudsonbot | Checkin | |
2017-03-15 20:21 | hudsonbot | Note Added: 0095286 | |
2017-03-15 20:21 | hudsonbot | Checkin | |
2017-03-15 20:21 | hudsonbot | Note Added: 0095287 | |
2017-03-15 20:22 | hudsonbot | Checkin | |
2017-03-15 20:22 | hudsonbot | Note Added: 0095290 | |
2017-03-20 15:12 | vmromanos | Review Assigned To | => vmromanos |
2017-03-20 15:12 | vmromanos | Note Added: 0095429 | |
2017-03-20 15:12 | vmromanos | Status | resolved => closed |
2017-03-20 15:12 | vmromanos | Fixed in Version | => 3.0PR17Q2 |
2018-02-06 11:33 | dmiguelez | Relationship added | causes 0037789 |
2018-02-06 11:59 | dmiguelez | Relationship deleted | causes 0037789 |
Notes |
|
(0094901)
|
hgbot
|
2017-03-10 10:26
|
|
Repository: erp/devel/pi
Changeset: af56683ab963a4ab97696134f4adc6bd6f274e76
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Mar 10 10:23:51 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/af56683ab963a4ab97696134f4adc6bd6f274e76 [^]
Fixes issue 35471: Order Line amounts and taxes not rounded after booking
M_PROMOTION_CALCULATE was run after rounding and adjusting the order, and it was updating the order lines, so triggers were run again calculating line net amount and taxes without rounding.
Now, round, adjust and recalculate will be done at the end of c_order_post and c_invoice_post, just before finish process extension point.
Also, line net amount will always be rounded to standard precision to avoid problems. In case we need to calculate taxes without rounding (price including taxes and taxes at document level), we will calculate again the line net amount in line after trigger to use it for calculating taxes at line level and document level without rounding.
---
M src-db/database/model/functions/C_INVOICE_POST.xml
M src-db/database/model/functions/C_ORDER_POST1.xml
M src-db/database/model/triggers/C_INVOICELINE_BEFORE_TRG.xml
M src-db/database/model/triggers/C_INVOICELINE_TRG2.xml
M src-db/database/model/triggers/C_ORDERLINE_TRG.xml
M src-db/database/model/triggers/C_ORDERLINE_TRG2.xml
A src-db/database/model/functions/C_INVOICETAX_ADJUSTMENT.xml
A src-db/database/model/functions/C_ORDERTAX_ADJUSTMENT.xml
---
|
|
|
(0094902)
|
hgbot
|
2017-03-10 10:26
|
|
|
|
(0094905)
|
hgbot
|
2017-03-10 11:27
|
|
Repository: erp/devel/pi
Changeset: c89bd10e88cc541ed38a393cbba3b5c859e6241a
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Mar 10 10:47:38 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c89bd10e88cc541ed38a393cbba3b5c859e6241a [^]
Related to issue 35471: Fix variables definition
---
M src-db/database/model/functions/C_INVOICETAX_ADJUSTMENT.xml
M src-db/database/model/functions/C_ORDERLINETAX_INSERT.xml
M src-db/database/model/triggers/C_INVOICELINETAX_TRG.xml
M src-db/database/model/triggers/C_ORDERLINETAX_TRG.xml
---
|
|
|
(0094926)
|
hgbot
|
2017-03-10 16:05
|
|
Repository: erp/devel/pi
Changeset: ee2bac8741535b8b83c0d65a028bd68529db8f62
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Mar 10 15:57:33 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ee2bac8741535b8b83c0d65a028bd68529db8f62 [^]
Related to bug 35471: Add last TaxAmt when calculating cascade/dependant taxes
---
M src-db/database/model/functions/C_INVOICETAX_ADJUSTMENT.xml
M src-db/database/model/functions/C_ORDERTAX_ADJUSTMENT.xml
M src-db/database/model/triggers/C_INVOICELINETAX_TRG.xml
M src-db/database/model/triggers/C_ORDERLINETAX_TRG.xml
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|