Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035139Retail ModulesWeb POSpublic2017-02-02 13:342017-03-07 17:40
marvintm 
marvintm 
normalmajoralways
closedfixed 
5
 
RR17Q1RR17Q1 
guilleaer
QA functional test
2016-11-01
main
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/19f3df300f234399cf2a42837690936fc8eb8542 [^]
No
0035139: Taxes at header level are not computed correctly when using price including taxes, and taxes are defined at line level
There is a problem when calculating taxes when using price including taxes, if taxes are defined at line level. In this case, the tax information is not shown in the Web POS screen, and finally the tax information at header level is not properly saved in the backend.
- Configure the usual taxes in the Web POS to be calculated at line level.
- Create a ticket with this configuration in the Web POS. Notice that taxes are not shown in the screen, and they are also not saved in the backend.
No tags attached.
blocks defect 0035138RR17Q2 closed marvintm Taxes at header level are not computed correctly when using price including taxes, and taxes are defined at line level 
Issue History
2017-02-02 13:35marvintmTypedefect => backport
2017-02-02 13:35marvintmTarget VersionRR17Q2 => RR17Q1
2017-02-06 14:08hgbotCheckin
2017-02-06 14:08hgbotNote Added: 0094085
2017-02-06 14:08hgbotStatusscheduled => resolved
2017-02-06 14:08hgbotResolutionopen => fixed
2017-02-06 14:08hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/1f37379df3f2b61aa3b137b14b8f8264dae8c762 [^]
2017-03-07 17:40guilleaerReview Assigned To => guilleaer
2017-03-07 17:40guilleaerStatusresolved => closed
2017-03-07 17:40guilleaerFixed in Version => RR17Q1

Notes
(0094085)
hgbot   
2017-02-06 14:08   
Repository: retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal
Changeset: 1f37379df3f2b61aa3b137b14b8f8264dae8c762
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Feb 06 14:07:44 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/1f37379df3f2b61aa3b137b14b8f8264dae8c762 [^]

Fixed issue 35139. Now taxes at header level will be calculated correctly in price including taxes+taxes at line level.
The taxes object will not be reset, so the previously calculated value (which comes from the sum of the taxes of each line) will be preserved in case the taxes are defined to be calculated at line level. If they are defined to be calculated at header level, the value will be overwritten in the loop which iterates through the taxGroups.

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