Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028610Retail ModulesDiscounts and Promotionspublic2015-01-14 13:212015-08-24 12:15
lorenzofidalgo 
migueldejuana 
normaltrivialalways
closedfixed 
5
pi 
RR15Q1 
adrianromero
No
0028610: Taxes are not well applied in "Tax breakdown" area when using a certain discount in "Canarias, Ceuta y Melilla" context
When using "Canarias, Ceuta y Melilla" tax context, after applying some discounts, "Tax breakdown" label is not properly calculated. This alse affects to tickets. Total amount and the other computations are properly calculated.

[This is working wrong in: livebuilds pi oracle, RR15Q1 & livebuilds Q4.
This is working properly in: livebuilds pi psql, livebuilds Q3.4, livebuilds Q2.5.]* [See notes]*
Login POS in CMS terminal as centralmountains/openbravo.
Add "Bottle 1L" product.
Increase amount until 3 units (when the default 3x2 discount is applied).
Check in Tax breakdown that result is not correct.
No tags attached.
causes defect 0028868 closed marvintm Cascade taxes are not properly applied 
png Taxes error.png (245,494) 2015-01-14 13:21
https://issues.openbravo.com/file_download.php?file_id=7681&type=bug
png
Issue History
2015-01-14 13:21lorenzofidalgoNew Issue
2015-01-14 13:21lorenzofidalgoAssigned To => marvintm
2015-01-14 13:21lorenzofidalgoFile Added: Taxes error.png
2015-01-14 13:21lorenzofidalgoTriggers an Emergency Pack => No
2015-01-14 13:26lorenzofidalgoRegression level => Production - QA Approved
2015-01-14 13:26lorenzofidalgoRegression introduced in release => RR14Q4
2015-01-14 13:45lorenzofidalgoSummaryTaxes are not well applied when using a certain discount in "Canarias, Ceuta y Melilla" context => Taxes are not well applied in "Tax breakdown" area when using a certain discount in "Canarias, Ceuta y Melilla" context
2015-01-14 13:45lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=7443#r7443
2015-01-29 17:30adrianromeroIssue Monitored: adrianromero
2015-01-29 18:22hgbotCheckin
2015-01-29 18:23hgbotNote Added: 0073918
2015-01-29 18:23hgbotStatusnew => resolved
2015-01-29 18:23hgbotResolutionopen => fixed
2015-01-29 18:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4777b071712d987046f35ceca7390bf568deebe4 [^]
2015-01-29 18:23migueldejuanaAssigned Tomarvintm => migueldejuana
2015-01-29 18:24migueldejuanaNote Added: 0073919
2015-01-29 19:04marvintmReview Assigned To => marvintm
2015-01-29 19:04marvintmStatusresolved => closed
2015-01-29 19:04marvintmFixed in Version => RR15Q1
2015-01-30 08:34lorenzofidalgoRegression levelProduction - QA Approved =>
2015-01-30 08:34lorenzofidalgoRegression introduced in releaseRR14Q4 =>
2015-01-30 08:34lorenzofidalgoNote Added: 0073924
2015-01-30 08:34lorenzofidalgoDescription Updatedbug_revision_view_page.php?rev_id=7560#r7560
2015-02-04 14:02adrianromeroNote Added: 0074087
2015-02-04 14:02adrianromeroStatusclosed => new
2015-02-04 14:02adrianromeroResolutionfixed => open
2015-02-04 14:02adrianromeroFixed in VersionRR15Q1 =>
2015-02-04 18:01adrianromeroStatusnew => scheduled
2015-02-04 18:01adrianromeroStatusscheduled => resolved
2015-02-04 18:02adrianromeroStatusresolved => closed
2015-02-04 18:02adrianromeroFixed in Version => RR15Q1
2015-02-04 18:22adrianromeroRelationship addedcauses 0028868
2015-02-06 11:25hgbotCheckin
2015-02-06 11:25hgbotNote Added: 0074244
2015-02-12 12:41plujanNote Added: 0074372
2015-03-23 16:04hgbotCheckin
2015-03-23 16:04hgbotNote Added: 0075882
2015-07-08 09:48hgbotCheckin
2015-07-08 09:48hgbotNote Added: 0078738
2015-07-08 09:48hgbotStatusclosed => resolved
2015-07-08 09:48hgbotResolutionopen => fixed
2015-07-08 09:48hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4777b071712d987046f35ceca7390bf568deebe4 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6593e1218e610e6079560640c3a698850397d171 [^]
2015-08-24 12:15marvintmReview Assigned Tomarvintm => adrianromero
2015-08-24 12:15marvintmStatusresolved => closed

Notes
(0073918)
hgbot   
2015-01-29 18:22   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4777b071712d987046f35ceca7390bf568deebe4
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jan 29 18:22:28 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4777b071712d987046f35ceca7390bf568deebe4 [^]

Fixed issue 0028610: Taxes are not well applied in "Tax breakdown" area when using a certain discount in "Canarias, Ceuta y Melilla" context

When taxRate is 0 we do not need to do some operations which could add precision error.

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0073919)
migueldejuana   
2015-01-29 18:24   
It has been reported as a Regression but I'm able to reproduce it in Q2.5
(0073924)
lorenzofidalgo   
2015-01-30 08:34   
After testing some days after, it was reproducible in all livebuilds contexts, so it is discarded as regression. Perhaps this issue was not reproducible in some contexs due to livebuilds configuration.
(0074087)
adrianromero   
2015-02-04 14:02   
The fix does not work properly. It checks for the rate of the first tax rate in the tax tree. It may happen that the first tax is a summary tax with rate 0 and in this case net is wrongly calculated.

The changeset must be reverted.
(0074244)
hgbot   
2015-02-06 11:25   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: dafeeccc8ab7f41693186dff35b6b864c7e005f1
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Feb 06 10:50:47 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dafeeccc8ab7f41693186dff35b6b864c7e005f1 [^]

Backed out changeset 4777b071712d
Reverting issue 0028610: Taxes are not well applied in "Tax breakdown" area when using a certain discount in "Canarias, Ceuta y Melilla" context

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0074372)
plujan   
2015-02-12 12:41   
This issue is still in Closed status while the last commit is a backout. Please correct the information to leave the data consistent. Either it is closed (resolution should change from Open) or it is not (status should be changed)
(0075882)
hgbot   
2015-03-23 16:04   
Repository: retail/backports/3.0RR15Q1.2/org.openbravo.retail.posterminal
Changeset: 7b8099c1d30659f75ff013f54dc9011111bb0e7d
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Feb 06 10:50:47 2015 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR15Q1.2/org.openbravo.retail.posterminal/rev/7b8099c1d30659f75ff013f54dc9011111bb0e7d [^]

Backed out changeset 4777b071712d
Reverting issue 0028610: Taxes are not well applied in "Tax breakdown" area when using a certain discount in "Canarias, Ceuta y Melilla" context

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0078738)
hgbot   
2015-07-08 09:48   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6593e1218e610e6079560640c3a698850397d171
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Jan 29 18:22:28 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6593e1218e610e6079560640c3a698850397d171 [^]

Fixed issue 0028610: Taxes are not well applied in "Tax breakdown" area when using a certain discount in "Canarias, Ceuta y Melilla" context

When taxRate is 0 we do not need to do some operations which could add precision error.

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---