Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032585Retail ModulesDiscounts and Promotionspublic2016-04-04 16:472016-04-28 10:09
aaroncalero 
jorge-garcia 
normalmajoralways
closedfixed 
5
 
RR16Q3 
marvintm
No
0032585: [SERQA 873] Discretionary discounts are not working with ungrouped lines
When we have on the same ticket two lines of the same product, and these lines have a different qty, if we apply a discretionary discount to one of these lines, the discount is wrongly applied.
Login in web pos and create an empty ticket
Add an avalanche transceiver, go to the edit tab, and click on return line.
Add another avalanche transceiver (a new line will be created).
Select the first line, go to the edit tab and click on return line again.
>Now the ticket will have two lines with one unit of avalanche transceiver.
Select the first line and increase its qty to 2.
Go to Menu > Receipt Discounts.
Add a variable % discount (e.g. 10%) to the first line.
> Verify that the discount is applied to the second line, and that the amount it discounts is calculated from the first line.
Increase the qty of the first line to 3 and the qty of the second line to 2.
> Verify that the discount applied to the first line is related to the second line, and the amount of the discount of the second line is related to the first line.
SER-QA
related to defect 0032601 closed jorge-garcia [SERQA 870] Issue when adding a price adjustment discount to two lines with the same product 
depends on defect 0032618 closed mario_castello Lines are not grouped when 'return line' is involved 
depends on feature request 0032638 feedback Retail Overhaul how lines are reorganized when discounts are applied 
depends on defect 0032639 closed mario_castello Lines are not grouped 
Not all the children of this issue are yet resolved or closed.
Issue History
2016-04-04 16:47aaroncaleroNew Issue
2016-04-04 16:47aaroncaleroAssigned To => Retail
2016-04-04 16:47aaroncaleroResolution time => 1460930400
2016-04-04 16:47aaroncaleroTriggers an Emergency Pack => No
2016-04-05 13:13ageteTag Attached: SER-QA
2016-04-05 13:14ageteSummaryDiscretionary discounts are not working with ungrouped lines => [SERQA 872] Discretionary discounts are not working with ungrouped lines
2016-04-06 18:22OrekariaStatusnew => acknowledged
2016-04-07 13:05OrekariaStatusacknowledged => scheduled
2016-04-07 17:49ageteSummary[SERQA 872] Discretionary discounts are not working with ungrouped lines => [SERQA 873] Discretionary discounts are not working with ungrouped lines
2016-04-11 10:02OrekariaStatusscheduled => feedback
2016-04-11 10:17OrekariaRelationship addeddepends on 0032638
2016-04-11 10:21OrekariaNote Added: 0085549
2016-04-11 10:59OrekariaRelationship addeddepends on 0032639
2016-04-20 11:04jorge-garciaStatusfeedback => scheduled
2016-04-20 11:04jorge-garciaAssigned ToRetail => jorge-garcia
2016-04-20 11:06jorge-garciaRelationship addedrelated to 0032601
2016-04-21 13:35hgbotCheckin
2016-04-21 13:35hgbotNote Added: 0085831
2016-04-21 13:37jorge-garciaNote Added: 0085834
2016-04-21 13:38jorge-garciaStatusscheduled => resolved
2016-04-21 13:38jorge-garciaResolutionopen => fixed
2016-04-28 10:09marvintmReview Assigned To => marvintm
2016-04-28 10:09marvintmStatusresolved => closed
2016-04-28 10:09marvintmFixed in Version => RR16Q3

Notes
(0085549)
Orekaria   
2016-04-11 10:21   
This issues is waiting the related feature request
(0085831)
hgbot   
2016-04-21 13:35   
Repository: tools/automation/pi-mobile
Changeset: de866c9b50ea6d51a2712b0855741e3fb6bcad21
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Apr 21 13:31:03 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/de866c9b50ea6d51a2712b0855741e3fb6bcad21 [^]

Verifies issue 32585: [SERQA 873] Discretionary discounts are not working with
ungrouped lines

Added test I32585_ReturnLineAndApplyDiscretionaryPromo.

---
A src-test/org/openbravo/test/mobile/quarantine/pack/JGA/discountsandpromotions/I32585_ReturnLineAndApplyDiscretionaryPromo.java
---
(0085834)
jorge-garcia   
2016-04-21 13:37   
This issue is also fixed by this changeset[1].

[1]http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2e734cd9ef63f7e33cae9b1ca9e77b4481385b9a [^]