Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0042131
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsminoralways2019-10-28 12:302019-11-28 17:25
Reporterinaki_garciaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityhighResolutionfixedFixed in VersionRR20Q1
StatusclosedFix in branchFixed in SCM revision277fd7837f2d
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionmainSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0042131: [19Q4] [UX] "Buy X and pay Y of same product" discount line item with "2x" is shown duplicated on POS when splitting in lines

DescriptionWhen creating a ticket with a product eligible for a "Buy X and pay Y of same product" and splitting it into two or more lines with the "Split lines" feature, the description item with the discount that appears in the original line can appear to be duplicate and
not correctly represent the discounts per line, although the discount amounts are correctly calculated. This is better described in the steps to reproduce and in the screenshot attachment below.

This is a user experience issue in which to keep an eye on and to reflect upon as on how the discounts are to be shown: either all of the discounts appear for a single line in representation of the lines in which the same product item is split into, or the
discounts appear individually per-line as the global count of said product increases and fulfills the discount condition. This becomes specially relevant for the upcoming more elaborate functionalities, such as the Restaurants module, where discounts in a multiple
ticket situation will need to be clear for the user.
Steps To ReproducePRECONDITION: the "Discounts and Promotions" module must be installed

-- In the Backend (ERP)
0. Log in ERP as Group -Admin-The White Valley Group
1. Go to Discounts and Promotions window
2. Create new record
 - Header tab
   * Discount type: Buy X pay Y of same product
   * Name: 3 x 2 Bottles
   * Starting date: today's date
   * Included Products: Only those defined
   * X Units: 3
   * Y Units: 2
  - Products subtab
   * Product: Bottle 1 L

-- In the Web POS
0. Log in the POS as user "vallblanca"
1. Add 3 units of the "Bottle 1 L" product item to the ticket. Notice that the "-- 3 x 2 Bottles" line description item will appear in the line
2. Click on the newly created ticket line, and click on the "Split" option in the line description pane. Click "Apply" button in the "Split" popup that appears. Notice that the discount now appears in the 2nd ticket line
3. Change the quantity for the first line to 5 units.
NOTICE that the two lines show "-- (2x) 3 x 2 Bottles" line description item, which is incorrect in reference to the single 3x2 discount that each line has. Either said line description item should appear for the 2nd line, or the original "-- 3 x 2 Bottles"
description for each of the lines. The discounts are correctly calculated and applied to the ticket.
TagsNo tags attached.
Attached Filesjpg file icon discount-multiplier-duplicate.jpg [^] (206,048 bytes) 2019-10-28 12:30

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0042310RR19Q4 closedranjith_qualiantech_com [19Q4] [UX] "Buy X and pay Y of same product" discount line item with "2x" is shown duplicated on POS when splitting in lines 

-  Notes
(0115773)
hgbot (developer)
2019-11-22 14:14

Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: 277fd7837f2d749d0348a8a1960c55d1669ca552
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Nov 22 18:43:52 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/277fd7837f2d749d0348a8a1960c55d1669ca552 [^]

Fixed issue 42131 : Chunks should be updated with available line qty

* When line is split with discount applied, chunks should be updated
  with minimum of chunks and line available qty

---
M web/org.openbravo.retail.discounts/js/discountsengine/common/rules/buy-x-pay-y-different-products-discount.js
---
(0115774)
hgbot (developer)
2019-11-22 14:14

Repository: tools/automation/pi-mobile
Changeset: a731f392963a96f3e60e17c16e8dcc4eca7ba9e2
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Nov 22 18:44:16 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/a731f392963a96f3e60e17c16e8dcc4eca7ba9e2 [^]

Verifies issue 42131 : Modified Automated Tests

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I30542_BuyXPayYDiffProd_Lowest.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I30542_BuyXPayYDiffProd_MostExpensive.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/MultiPromotions_BuyXPayYDiffProducts_LowestI.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/MultiPromotions_BuyXPayYDiffProducts_MostExpensiveI.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/splitline/SplitLineWithAutomaticPromoBuyXPayYDiffProd2.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I42131_VerifyBuyXGiftYDiscountWithSplitLines.java
---

- Issue History
Date Modified Username Field Change
2019-10-28 12:30 inaki_garcia New Issue
2019-10-28 12:30 inaki_garcia Assigned To => Retail
2019-10-28 12:30 inaki_garcia File Added: discount-multiplier-duplicate.jpg
2019-10-28 12:30 inaki_garcia Triggers an Emergency Pack => No
2019-10-28 12:31 inaki_garcia Description Updated View Revisions
2019-10-28 12:32 inaki_garcia Steps to Reproduce Updated View Revisions
2019-10-28 17:32 inaki_garcia Summary [19Q4] [UX] "Buy X and pay Y of same product" discount line item incorrectly displayed when splitting in lines => [19Q4] [UX] "Buy X and pay Y of same product" discount line item incorrectly displayed on POS when splitting in lines
2019-10-28 17:40 inaki_garcia Summary [19Q4] [UX] "Buy X and pay Y of same product" discount line item incorrectly displayed on POS when splitting in lines => [19Q4] [UX] "Buy X and pay Y of same product" discount line item with "2x" is shown duplicated on POS when splitting in lines
2019-10-31 17:26 inaki_garcia Issue cloned 0042168
2019-11-13 10:32 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2019-11-13 10:32 ranjith_qualiantech_com Status new => scheduled
2019-11-18 15:23 marvintm Status scheduled => acknowledged
2019-11-18 15:23 marvintm Status acknowledged => scheduled
2019-11-22 14:14 hgbot Checkin
2019-11-22 14:14 hgbot Note Added: 0115773
2019-11-22 14:14 hgbot Status scheduled => resolved
2019-11-22 14:14 hgbot Resolution open => fixed
2019-11-22 14:14 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/277fd7837f2d749d0348a8a1960c55d1669ca552 [^]
2019-11-22 14:14 hgbot Checkin
2019-11-22 14:14 hgbot Note Added: 0115774
2019-11-28 17:25 marvintm Review Assigned To => marvintm
2019-11-28 17:25 marvintm Status resolved => closed
2019-11-28 17:25 marvintm Fixed in Version => RR20Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker