Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027836Retail ModulesDiscounts and Promotionspublic2014-10-10 13:552014-11-17 20:20
plujan 
szapata 
normalminorhave not tried
closedfixed 
5
main 
RR15Q1 
mtaal
No
0027836: On the backend, Quantity field is not overridden by making it a Gift Product
When using the "Buy X and get Y as gift" promotion type, if I choose a product and I assign a quantity before checking the "Gift product" option, this value keeps counting even if the field is hidden.
So the discount will not be properly calculated until the user unchecks the Gift Product option, clears the field and checks it again.
1. Log in the backend as Group -Admin-The White Valley Group
2. Go to Discounts and Promotions window
3. Create new record
4. On Header tab
- Discount type: Buy X and get Y as gift
- Name: free wax
- Starting date: 01-01-2012
- Products: Only those defined
5. On Products tab
- Create a new line:
   - Product: All mountain ski board
   - Quantity 1
- Create a second line:
   - Ski wax
   - Quantity 1
   - Gift product: yes
   - Gift Quantity: 1
6. Note that when marking "Gift product" check, "Quantity" field disappears.
7. Use the promotion by logging in at the Frontend
8. Add 1 All mountain ski board and 1 Ski wax. Check that no discount is shown although it should.
9. Add 1 extra ski wax. Check that the discount is shown.
10. Return to the record created on step 5. Uncheck the Gift Product field for the Wax and check that Quantity still keeps the 1 value set before.
11. Delete this value, check the Gift Product again and repeat steps 7 to 9. Note that now the first wax gets the discount while the second does not, and that is the expected behaviour.
 
No tags attached.
Issue History
2014-10-10 13:55plujanNew Issue
2014-10-10 13:55plujanAssigned To => marvintm
2014-10-10 13:55plujanTriggers an Emergency Pack => No
2014-10-10 14:31plujanIssue cloned0027840
2014-10-10 15:33mtaalIssue Monitored: mtaal
2014-10-10 15:33mtaalAssigned Tomarvintm => szapata
2014-10-31 02:57hgbotCheckin
2014-10-31 02:57hgbotNote Added: 0071288
2014-10-31 02:57hgbotStatusnew => resolved
2014-10-31 02:57hgbotResolutionopen => fixed
2014-10-31 02:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/169f5d96a5724fcb96686cdd1400cf9394813280 [^]
2014-11-17 20:20mtaalReview Assigned To => mtaal
2014-11-17 20:20mtaalNote Added: 0071732
2014-11-17 20:20mtaalStatusresolved => closed
2014-11-17 20:20mtaalFixed in Version => RR15Q1

Notes
(0071288)
hgbot   
2014-10-31 02:57   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 169f5d96a5724fcb96686cdd1400cf9394813280
Author: Salvador Zapata <salvador.zapata <at> gmail.com>
Date: Thu Oct 30 22:56:53 2014 -0300
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/169f5d96a5724fcb96686cdd1400cf9394813280 [^]

Fixed issue 27836: QtyToGetGift has to be 0 for the product gift

---
M web/org.openbravo.retail.discounts/js/promotion-buyXgiftY.js
---
(0071732)
mtaal   
2014-11-17 20:20   
Reviewed and tested