Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0036231 | Retail Modules | Discounts and Promotions | public | 2017-06-01 11:59 | 2017-07-03 16:59 | |||||||
Reporter | malsasua | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | immediate | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | RR17Q2.1 | Fixed in Version | RR17Q2.1 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | Production - Confirmed Stable | |||||||||||
Regression date | 2017-02-17 | |||||||||||
Regression introduced in release | RR17Q2 | |||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/eb6b4b84a3416e104ee4aa2f2704ecaa732cc084 [^] | |||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0036231: Discounts are not applied when a product is not included in the store assortment | |||||||||||
Description | when a discount is configured with "included product: All excluding defined", and there is some product in product tab, then the discount is not applied for any product | |||||||||||
Steps To Reproduce | in backend: . discount and promotion window: . discount: GPS_10_per . change "included product" field, from "Only those defined" to "All excluding defined" in product tab there are two products: gps handled and gps touch screen in POS: . add new product: inspect repelent expected behavior: discount GPS_10_per should be applied, but it is not applied. It is not applied for any discount | |||||||||||
Proposed Solution | in discount master query, this part should be removed: hql += "and ((p.includedProducts = 'Y' and not exists (select 1 "; hql += " from PricingAdjustmentProduct pap, OBRETCO_Prol_Product ppl "; hql += " where pap.active = true and pap.priceAdjustment = p "; hql += " and pap.product.id = ppl.product.id "; hql += " and ppl.obretcoProductlist.id ='" + productList.getId() + "')) "; | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-06-12 16:15 | ranjith_qualiantech_com | Type | defect => backport | |||||||||
2017-06-12 16:15 | ranjith_qualiantech_com | Target Version | => RR17Q2.1 | |||||||||
2017-06-13 11:16 | hgbot | Checkin | ||||||||||
2017-06-13 11:16 | hgbot | Note Added: 0097350 | ||||||||||
2017-06-13 11:16 | hgbot | Status | scheduled => resolved | |||||||||
2017-06-13 11:16 | hgbot | Resolution | open => fixed | |||||||||
2017-06-13 11:16 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a99eaea6ebd2ae64996cbbabdddf5e2d76131638 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q2.1/org.openbravo.retail.posterminal/rev/ffd895c239c9a5444d8e7cf60be7ae14b5fee581 [^] | |||||||||
2017-06-13 11:16 | hgbot | Checkin | ||||||||||
2017-06-13 11:16 | hgbot | Note Added: 0097351 | ||||||||||
2017-06-19 18:30 | marvintm | Review Assigned To | => marvintm | |||||||||
2017-06-19 18:30 | marvintm | Status | resolved => closed | |||||||||
2017-06-19 18:30 | marvintm | Fixed in Version | => RR17Q2.1 | |||||||||
2017-07-03 16:59 | hgbot | Checkin | ||||||||||
2017-07-03 16:59 | hgbot | Note Added: 0097805 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|