Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032828Retail ModulesWeb POSpublic2016-05-02 18:362016-05-20 13:17
amayavicente 
jorge-garcia 
highmajoralways
closedfixed 
5
 
RR16Q3 
marvintm
No
0032828: [SERQA 871] Discount allocation by article inconsistent when quantity in empty is the definition of a pack
Discount allocation by article inconsistent when quantity in empty is the definition of a pack.
In the backend, Go to the Discount and promotion:
- Chek that the Promotion “Camping Pack” exists with the two following articles:
o Down sleeping bag 500
o Expedition tent 4 season 2 person
- Make sure to deactivate the promotions “Price adjustment” to avoid any inconsistencies in the test (To be sure that only the Camping Pack will be applied)
- In the tab Products, remove the column Quantity. Leave both quantities as empty.

In the Webpos, Go to the VBS-1 with the user vallblanca:
- Create a ticket with the pack: Camping Pack
o Click on “Search”;
o Categories: Pack. Search. Select Camping Pack
- Check that discounts are -34,85 for 1st line and -85,15 for the 2nd line.
- Select in the ticket the 1st article and add 1 Qty

Error: The allocation discount by articles has been modified, -69,69 for 1st line and -46,31 for the 2nd line. The allocation does not change when quantity is not empty in the definition of a pack
The field Discount & Promotions || Products --> Quantity must be mandatory for packs.
SER-QA
depends on defect 0032596 closed jorge-garcia [SERQA 871] Discount allocation by article: Inconsistency 
Issue History
2016-05-02 18:36amayavicenteNew Issue
2016-05-02 18:36amayavicenteAssigned To => Retail
2016-05-02 18:36amayavicenteResolution time => 1463349600
2016-05-02 18:36amayavicenteTriggers an Emergency Pack => No
2016-05-02 18:37amayavicenteTag Attached: SER-QA
2016-05-02 18:37amayavicenteRelationship addeddepends on 0032596
2016-05-04 13:20OrekariaStatusnew => acknowledged
2016-05-06 11:45jorge-garciaStatusacknowledged => scheduled
2016-05-06 11:45jorge-garciaAssigned ToRetail => jorge-garcia
2016-05-09 12:45hgbotCheckin
2016-05-09 12:45hgbotNote Added: 0086307
2016-05-09 12:45hgbotStatusscheduled => resolved
2016-05-09 12:45hgbotResolutionopen => fixed
2016-05-09 12:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/a9e438742fbf0bfa70a87fcba61ffce54514dfeb [^]
2016-05-20 13:17marvintmReview Assigned To => marvintm
2016-05-20 13:17marvintmStatusresolved => closed
2016-05-20 13:17marvintmFixed in Version => RR16Q3

Notes
(0086307)
hgbot   
2016-05-09 12:45   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: a9e438742fbf0bfa70a87fcba61ffce54514dfeb
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri May 06 14:32:41 2016 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/a9e438742fbf0bfa70a87fcba61ffce54514dfeb [^]

Fixed issue 32828: [SERQA 871] Discount allocation by article inconsistent
when quantity in empty is the definition of a pack

Now, it's necessary to define a Quantity greater than 0 in a product defined as
a pack.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/discounts/event/MOfferProductEventHandler.java
---