Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027851Retail ModulesDiscounts and Promotionspublic2014-10-13 13:292014-10-22 13:50
plujan 
marvintm 
normalmajorhave not tried
closedfixed 
5
main 
RR14Q3 
marvintm
Production - QA Approved
RR14Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/ff64aefab4b0 [^]
No
0027851: Discount packs not getting totals
I created a discount pack in the backend. When used in the webpos, I got all the lines added but total remains on zero.
Scenario that works fine:
Log in ERP as Group -Admin-The White Valley Group
Go to Discounts and Promotions window
Create new record
Header tab
-Discount type: Pack
-Name: Ski touring pack
-Starting date: 01-01-2012
-Products: Only those defined
-Discount/Promotion Price: 300
-Currency: EUR
-UPC: 1111
Products tab
-Create 3 lines:
-Ski touring boot alpine, qty: 1
-Ski touring board, qty: 1
-Ski touring pole compact, qty: 1
 

Scenario that fails:
Log in ERP as Group -Admin-The White Valley Group
Go to Discounts and Promotions window
Create new record
Header tab
-Discount type: Pack
-Name: Ski touring pack No Qty
-Starting date: 01-01-2012
-Products: Only those defined
-Discount/Promotion Price: 300
-Currency: EUR
-UPC: 2222
Products tab
-Create 3 lines:
-Ski touring boot alpine, do not fill the quantity field as is not mandatory
-Ski touring board, do not fill the quantity field as is not mandatory
-Ski touring pole compact, do not fill the quantity field as is not mandatory


Log in POS (online)

- Browse → Pack → Ski touring pack (click) (Works as expected)
- Browse → Pack → Ski touring pack No Qty (click) (Expected result, the pack is added to the order and the total is 300. Actual result, the pack is added but total remains on 0.00)

- Search → Ski touring pack (click) (Works as expected)
- Search → Ski touring pack No Qty (click) (Expected result, the pack is added to the order and now the total is 600. Actual result, the pack is added but total remains on 0.00)

- Scan 1111 UPC/EAN (works as expected)
- Scan 2222 UPC/EAN (Expected result, the pack is added to the order and now the total is 900. Actual result, the pack is added but total remains on 0.00)
No tags attached.
png Packs not working.png (43,628) 2014-10-13 13:29
https://issues.openbravo.com/file_download.php?file_id=7351&type=bug
png
Issue History
2014-10-13 13:29plujanNew Issue
2014-10-13 13:29plujanAssigned To => marvintm
2014-10-13 13:29plujanFile Added: Packs not working.png
2014-10-13 13:29plujanTriggers an Emergency Pack => No
2014-10-15 14:11plujanRegression level => Production - QA Approved
2014-10-15 14:11plujanRegression introduced in release => RR14Q3
2014-10-15 14:58plujanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6789#r6789
2014-10-15 16:41hgbotCheckin
2014-10-15 16:41hgbotNote Added: 0070969
2014-10-15 16:41hgbotStatusnew => resolved
2014-10-15 16:41hgbotResolutionopen => fixed
2014-10-15 16:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/ef6690a5b5d569ee971d7603aaf2f6e9fd4ca58c [^]
2014-10-15 16:46malsasuaStatusresolved => new
2014-10-15 16:46malsasuaResolutionfixed => open
2014-10-15 16:47malsasuaRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/ff64aefab4b0 [^]
2014-10-15 16:47malsasuaStatusnew => scheduled
2014-10-15 16:47malsasuafix_in_branch => pi
2014-10-15 16:47malsasuaStatusscheduled => resolved
2014-10-15 16:47malsasuaResolutionopen => fixed
2014-10-22 13:50marvintmReview Assigned To => marvintm
2014-10-22 13:50marvintmNote Added: 0071119
2014-10-22 13:50marvintmStatusresolved => closed
2014-10-22 13:50marvintmFixed in Version => RR14Q3

Notes
(0070969)
hgbot   
2014-10-15 16:41   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: ef6690a5b5d569ee971d7603aaf2f6e9fd4ca58c
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Wed Oct 15 16:40:34 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/ef6690a5b5d569ee971d7603aaf2f6e9fd4ca58c [^]

fixed issue 0027851:in packs, if qty product is void, 1 unit is used by default

---
M web/org.openbravo.retail.discounts/js/promotion-pack.js
---
(0071119)
marvintm   
2014-10-22 13:50   
Included in Q3.1 (this version is not available in the "Fixed in Version" combo)