Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026855Retail ModulesDiscounts and Promotionspublic2014-06-12 18:502014-06-23 12:16
malsasua 
malsasua 
highmajoralways
closedfixed 
5
 
RR14Q3 
migueldejuana
No
0026855: discount with amount 0 is displayed
discount with amount 0 is displayed
In backoffice create a new discount 3x2 using the type Two families discount with two families:
**Family 1: Name= 2 units at regular prices, Qty=2, Descount type=Percentage, Percentage=0
**Family 2: Name= 1 free unit, Qty=1, Descount type=Percentage, Percentage=100

Select the same product (P1) in the two families.
. create receipt
. new line P1 qty=3
No tags attached.
png screenshot.png (291,955) 2014-06-12 18:50
https://issues.openbravo.com/file_download.php?file_id=7002&type=bug
Issue History
2014-06-12 18:50malsasuaNew Issue
2014-06-12 18:50malsasuaAssigned To => malsasua
2014-06-12 18:50malsasuaFile Added: screenshot.png
2014-06-12 18:50malsasuaTriggers an Emergency Pack => No
2014-06-13 09:26hgbotCheckin
2014-06-13 09:26hgbotNote Added: 0067977
2014-06-13 09:26hgbotStatusnew => resolved
2014-06-13 09:26hgbotResolutionopen => fixed
2014-06-13 09:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/31cb33826cc27ef0cc795e1ec1d8f7519e67a9cd [^]
2014-06-23 12:16migueldejuanaReview Assigned To => migueldejuana
2014-06-23 12:16migueldejuanaNote Added: 0068243
2014-06-23 12:16migueldejuanaStatusresolved => closed
2014-06-23 12:16migueldejuanaFixed in Version => RR14Q3

Notes
(0067977)
hgbot   
2014-06-13 09:26   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 31cb33826cc27ef0cc795e1ec1d8f7519e67a9cd
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Fri Jun 13 09:25:44 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/31cb33826cc27ef0cc795e1ec1d8f7519e67a9cd [^]

[disc&promo refactor] fixed issue 26855:discount with amount 0 is displayed

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0068243)
migueldejuana   
2014-06-23 12:16   
Tested and reviewed in 2ff0c77622ae