Openbravo Issue Tracking System - Retail Modules
View Issue Details
0025380Retail ModulesDiscounts and Promotionspublic2013-12-19 18:252014-03-14 11:20
jecharri 
guilleaer 
urgentmajoralways
closedfixed 
5
 
RR14Q2RR14Q2 
marvintm
No
0025380: Problem with two packs that share some products Both packs with priority
Problem with two packs that share some products Both packs with priority
-Go to live instance
-Set priority 50 to pack "Camping pack"
-Create a pack with priority 10 and products:
Adhesive body warmers(1)
Down sleeping bag 500(1)

Go to web POS:
-add two "Down sleeping bag 500"
-add one "Expedition tent 4 season 2 person" --> pack "Camping pack is added"
-add one "Down sleeping bag 500"
-add one "Adhesive body warmers" --> verify that new pack is not added

At this moment if you refresh the window, you will see that new pack is added and also "Camping pack" but the amounts are completelly wrong
No tags attached.
Issue History
2013-12-19 18:25jecharriNew Issue
2013-12-19 18:25jecharriAssigned To => guilleaer
2013-12-19 18:25jecharriResolution time => 1389654000
2013-12-19 18:25jecharriTriggers an Emergency Pack => No
2014-01-23 17:33guilleaerTarget VersionRMP30 => RMP32
2014-02-24 18:23hgbotCheckin
2014-02-24 18:23hgbotNote Added: 0064540
2014-02-24 18:23hgbotStatusnew => resolved
2014-02-24 18:23hgbotResolutionopen => fixed
2014-02-24 18:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/818068f2cc7b7578d2e03210d2d07e8846eb232f [^]
2014-03-05 10:41hgbotCheckin
2014-03-05 10:41hgbotNote Added: 0064814
2014-03-05 10:56marvintmReview Assigned To => marvintm
2014-03-05 10:56marvintmStatusresolved => closed
2014-03-05 10:56marvintmFixed in Version => RR14Q2
2014-03-14 06:39sureshbabuNote Added: 0065152
2014-03-14 11:20guilleaerNote Added: 0065160

Notes
(0064540)
hgbot   
2014-02-24 18:23   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 818068f2cc7b7578d2e03210d2d07e8846eb232f
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Feb 24 18:23:05 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/818068f2cc7b7578d2e03210d2d07e8846eb232f [^]

Fixed issue 25380: Priorities are calculated based on _idxç

---
M web/org.openbravo.retail.discounts/js/promotion-pack.js
---
(0064814)
hgbot   
2014-03-05 10:41   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: c0194f515aaa2d0e713bf3717cd0accc08f4bedc
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Mar 05 10:41:40 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/c0194f515aaa2d0e713bf3717cd0accc08f4bedc [^]

Related to issue 25380. Remove unneeded commented line

---
M web/org.openbravo.retail.discounts/js/promotion-pack.js
---
(0065152)
sureshbabu   
2014-03-14 06:39   
At WEBPOS after entering the below details

-add two "Down sleeping bag 500"
-add one "Expedition tent 4 season 2 person"
-add one "Down sleeping bag 500"
-add one "Adhesive body warmers"

Old pack discount is removed and new pack discount is added..

Not sure whether this is the expected behavior or not..
(0065160)
guilleaer   
2014-03-14 11:20   
It is working fine because the priority of the pack "Mini camping pack" is greater.

When adhesive body warmers are included in the ticket both packs are candidates but just one can be applied (limitation of discount: just one pack can affect to one line).

In this situation "Mini camping pack" will be applied because its priority is greater.