Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040478Retail ModulesDiscounts and Promotionspublic2019-03-28 13:532019-04-24 12:38
xabiermerino 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
adrianromero
No
0040478: Scaled price for Product Category does not work
Scaled price for Product Category does not work. Openbravo should apply the discount for product with less price
Configure a scaled price promotion:
* For Mountaneering
* Item 1 --> 0% discount
*Item 2 --> 10% discount

Steps:
Introduce Crampons 10p (39.90)
Introduce Avalanche (150.50) --> promotion is applied to Crampons --> OK
Introduce Crampons 12p (49,90) --> promotion is applied to Crampons 12 instead -> WRONG, because Crampons 10 has lower price and should be applied to that one instead
Introduce Descender 8 (12.50) --> promotion is applied to Descender 8 also, this is OK because it has the lowest price, but second promotion is still applied to Crampons 12, and this is wrong.
Scaled price promotion should always be applied first to the products which have lower price.
No tags attached.
patch issue 40478 source scaledprice v1.patch (5,074) 2019-03-29 10:08
https://issues.openbravo.com/file_download.php?file_id=12808&type=bug
patch issue 40478 source pimobile.patch (9,756) 2019-04-02 09:16
https://issues.openbravo.com/file_download.php?file_id=12821&type=bug
Issue History
2019-03-28 13:53xabiermerinoNew Issue
2019-03-28 13:53xabiermerinoAssigned To => Retail
2019-03-28 13:53xabiermerinoResolution time => 1553900400
2019-03-28 13:53xabiermerinoTriggers an Emergency Pack => No
2019-03-28 15:27umartirenaPriorityhigh => urgent
2019-03-28 15:27umartirenaIssue Monitored: umartirena
2019-03-28 16:08marvintmSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18553#r18553
2019-03-28 16:08marvintmProposed Solution updated
2019-03-29 06:09ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-03-29 06:09ranjith_qualiantech_comStatusnew => scheduled
2019-03-29 10:08ranjith_qualiantech_comFile Added: issue 40478 source scaledprice v1.patch
2019-04-02 09:16ranjith_qualiantech_comFile Added: issue 40478 source pimobile.patch
2019-04-08 12:47hgbotCheckin
2019-04-08 12:47hgbotNote Added: 0111019
2019-04-08 15:22hgbotCheckin
2019-04-08 15:22hgbotNote Added: 0111025
2019-04-09 07:29ranjith_qualiantech_comStatusscheduled => resolved
2019-04-09 07:29ranjith_qualiantech_comResolutionopen => fixed
2019-04-15 08:46ranjith_qualiantech_comNote Added: 0111119
2019-04-15 08:46ranjith_qualiantech_comStatusresolved => new
2019-04-15 08:46ranjith_qualiantech_comResolutionfixed => open
2019-04-16 08:52ranjith_qualiantech_comStatusnew => scheduled
2019-04-19 08:38hgbotCheckin
2019-04-19 08:38hgbotNote Added: 0111214
2019-04-23 08:28ranjith_qualiantech_comStatusscheduled => resolved
2019-04-23 08:28ranjith_qualiantech_comResolutionopen => fixed
2019-04-24 12:38adrianromeroReview Assigned To => adrianromero
2019-04-24 12:38adrianromeroNote Added: 0111266
2019-04-24 12:38adrianromeroStatusresolved => closed
2019-04-24 12:38adrianromeroFixed in Version => RR19Q3

Notes
(0111019)
hgbot   
2019-04-08 12:47   
Repository: erp/pmods/org.openbravo.retail.discounts.scaledprice
Changeset: ea933817d727ce400a447daf389799ed28f1e489
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Apr 08 16:16:14 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/ea933817d727ce400a447daf389799ed28f1e489 [^]

Related to issue 40478 : Refactored Scaled price discount calculation

* Discounts should be applied for products from lower price to higher price

---
M web/org.openbravo.retail.discounts.scaledprice/js/scaledprice.js
---
(0111025)
hgbot   
2019-04-08 15:22   
Repository: tools/automation/pi-mobile
Changeset: ecb803ad1db182cf4b3ec18b55d2d2db5837ed91
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Apr 08 18:52:44 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/ecb803ad1db182cf4b3ec18b55d2d2db5837ed91 [^]

Verifies issue 40478 : Added automated test 'I40478_VerifyScaledDiscountWithLowerPrice'

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_scaledprice/I38736_VerifyScalePriceDiscountInOfflineMode.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_scaledprice/I38813_VerifyDiscountWhenCanceledByAnother.java
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_scaledprice/I38813_VerifyDiscountWhenCanceledByAnother2.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_scaledprice/I40478_VerifyScaledDiscountWithLowerPrice.java
---
(0111119)
ranjith_qualiantech_com   
2019-04-15 08:46   
Chunks should be updated for scaled discounts
(0111214)
hgbot   
2019-04-19 08:38   
Repository: erp/pmods/org.openbravo.retail.discounts.scaledprice
Changeset: e73c988e82add780e15b39f2d6102c1b808130f9
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Apr 19 12:07:48 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/e73c988e82add780e15b39f2d6102c1b808130f9 [^]

Related to issue 40478 : Refactored Scaled price discount calculation

* Scaled Discounts should be applied for products from lower price to higher price
* Chunks should not be used for Scaled discounts

---
M web/org.openbravo.retail.discounts.scaledprice/js/scaledprice.js
---
(0111266)
adrianromero   
2019-04-24 12:38   
Verified.