Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027106Retail ModulesDiscounts and Promotionspublic2014-07-17 09:022014-07-25 00:17
Orekaria 
marvintm 
normalmajoralways
closedfixed 
5
 
RR14Q4 
szapata
No
No
0027106: When trying to apply a 'buy x gift y' distributed discount, an error raises
When trying to apply a 'buy x gift y' distributed discount, an error raises
Login to WebPos as vallblanca

- add a unisex ski
- add a glide wax
(the 'Unisex Skis » gift Glide Wax' discount should be applied)

verify that an error is raised
No tags attached.
png errorGiftDistributed.png (222,870) 2014-07-17 09:02
https://issues.openbravo.com/file_download.php?file_id=7060&type=bug
png
Issue History
2014-07-17 09:02OrekariaNew Issue
2014-07-17 09:02OrekariaAssigned To => marvintm
2014-07-17 09:02OrekariaFile Added: errorGiftDistributed.png
2014-07-17 09:02OrekariaOBNetwork customer => No
2014-07-17 09:02OrekariaTriggers an Emergency Pack => No
2014-07-17 09:33OrekariaNote Added: 0068690
2014-07-24 11:11hgbotCheckin
2014-07-24 11:11hgbotNote Added: 0068857
2014-07-24 11:11hgbotStatusnew => resolved
2014-07-24 11:11hgbotResolutionopen => fixed
2014-07-24 11:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/8be2e597fb6e8266812cf189d9cd13546db329ef [^]
2014-07-25 00:17szapataReview Assigned To => szapata
2014-07-25 00:17szapataStatusresolved => closed

Notes
(0068690)
Orekaria   
2014-07-17 09:33   
This issue can also be reproduced with the Communit-6789 test link case:

-Create a new "Buy X and get Y as gift" discount
-Add products:
* All mountain ski board (price list 245.50€), qty:1, gift:no
* Ski wax (price list 7.50€), qty:2, gift:yes
-Create a Sales Order with the following lines:
* All mountain ski board, qty:1
* Ski wax, qty:3
(0068857)
hgbot   
2014-07-24 11:11   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 8be2e597fb6e8266812cf189d9cd13546db329ef
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Jul 24 11:11:10 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/8be2e597fb6e8266812cf189d9cd13546db329ef [^]

Fixed issue 27106: when obdiscQty is undefined, a default value is used

---
M web/org.openbravo.retail.discounts/js/promotion-buyXgiftY.js
---