Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027239Retail ModulesDiscounts and Promotionspublic2014-07-30 17:542014-09-15 14:10
jecharri 
marvintm 
urgentminoralways
closedfixed 
5
pi 
RR14Q4 
Orekaria
No
0027239: When one applies two discounts in cascade the total is wrong
When one applies two discounts in cascade the total is wrong
Configure 2 discounts which type is price adjustment
-The first one will be 10% discount and with check "apply next discount" checked and priority 0
-The second one will be 20% and min quantity 15
-Restrict the discounts to product "adhesive-body warmers"
-Go to Web POS and include 15 units of above product --> the product price must be 3.60

Verify that in the image that total is wrong
3.6+15=54
54*0.9=48,6
48,6+0.8= 38.88 <-- the problem is that it is applying 9.75 instead of 9.72 and it is showing 38.85
No tags attached.
related to defect 0026916 closed malsasua [DiS&Prom] Precision issue while calculating taxes (price list not inclusive of taxes) 
png discountsBug.png (148,920) 2014-07-30 17:57
https://issues.openbravo.com/file_download.php?file_id=7108&type=bug
png
Issue History
2014-07-30 17:54jecharriNew Issue
2014-07-30 17:54jecharriAssigned To => marvintm
2014-07-30 17:54jecharriTriggers an Emergency Pack => No
2014-07-30 17:54jecharriResolution time => 1410300000
2014-07-30 17:54jecharriSeveritymajor => minor
2014-07-30 17:57OrekariaFile Added: discountsBug.png
2014-07-30 19:28OrekariaRelationship addedrelated to 0026916
2014-08-02 03:05OrekariaSummaryWhen you apply two discounts in cascade the total is wrong => When one applies two discounts in cascade the total is wrong
2014-08-02 03:05OrekariaDescription Updatedbug_revision_view_page.php?rev_id=6236#r6236
2014-09-09 01:06hgbotCheckin
2014-09-09 01:06hgbotNote Added: 0070035
2014-09-09 01:06hgbotStatusnew => resolved
2014-09-09 01:06hgbotResolutionopen => fixed
2014-09-09 01:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c66aae44a9030e05eedcabda3f6c3817900a300d [^]
2014-09-15 14:10OrekariaReview Assigned To => Orekaria
2014-09-15 14:10OrekariaStatusresolved => closed
2014-09-15 14:10OrekariaFixed in Version => RR14Q4

Notes
(0070035)
hgbot   
2014-09-09 01:06   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c66aae44a9030e05eedcabda3f6c3817900a300d
Author: Salvador Zapata <salvador.zapata <at> gmail.com>
Date: Tue Sep 09 01:05:41 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c66aae44a9030e05eedcabda3f6c3817900a300d [^]

Fixed issue 27239: Change the round mode to the end of the calculation

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---