Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0052762Openbravo ERP00. Application dictionarypublic2023-06-16 02:012023-07-05 09:09
axelmercado 
ranjith_qualiantech_com 
immediatecriticalalways
closedfixed 
5
 
 
Core
Production - QA Approved
2023-02-15
PR23Q2
https://gitlab.com/openbravo/product/openbravo/-/commit/ae50b716be895db7f75fad22f3a2cf9bc5981093 [^]
No
0052762: Problem with 'Product' tab in 'Discounts and promotions' window in a customer without retail
A condition corresponding to the Retail Discounts module has been added in the latest versions, it was added in the following issue: https://issues.openbravo.com/view.php?id=50706. [^]
The problem is that it was applied without taking into account the customers that do not have Retail and that can make use of the window.

The filter is 'e.obdiscIsGift=false' and is a where clause found in the 'Product' tab of the 'Discounts and promotions' window.

If an attempt is made to open the window and the tab, an error is generated.
Just try opening the 'Discounts and promotions' window and then the 'Product' tab.

Again to clarify: Only for non-retail customers.
There is no nice way to fix this problem. The proposal would be:
- Remove the display logic from the field in Core
- Add it back for Retail instances, through the Configuration Script in the Retail template.

This will mean that the tabs will not fully work in basic Core, but as those discount filters anyway are not implemented for the backoffice, it should not be a big problem, and in Retail instances it will work correctly.
No tags attached.
depends on backport 0052896PR23Q3 closed ranjith_qualiantech_com Openbravo ERP Problem with 'Product' tab in 'Discounts and promotions' window in a customer without retail 
depends on backport 0052897PR23Q2.2 closed ranjith_qualiantech_com Openbravo ERP Problem with 'Product' tab in 'Discounts and promotions' window in a customer without retail 
caused by design defect 0050706 closed prakashmurugesan88 Retail Modules [PROMO] - Product category and Characteristics KO in "Buy X and get Y as a gift" promotion 
Issue History
2023-06-16 02:01axelmercadoNew Issue
2023-06-16 02:01axelmercadoAssigned To => Triage Platform Base
2023-06-16 02:01axelmercadoModules => Core
2023-06-16 02:01axelmercadoTriggers an Emergency Pack => No
2023-06-21 10:23AugustoMauchAssigned ToTriage Platform Base => Retail
2023-06-23 02:27axelmercadoPriorityhigh => urgent
2023-06-30 09:20AugustoMauchRegression level => Production - QA Approved
2023-06-30 09:20AugustoMauchRegression date => 2023-02-15
2023-06-30 09:20AugustoMauchRegression introduced in release => PR23Q2
2023-06-30 09:20AugustoMauchRegression introduced by commit => https://gitlab.com/openbravo/product/openbravo/-/commit/ae50b716be895db7f75fad22f3a2cf9bc5981093 [^]
2023-06-30 09:20AugustoMauchPriorityurgent => immediate
2023-06-30 09:20AugustoMauchSeveritymajor => critical
2023-06-30 09:29marvintmProposed Solution updated
2023-06-30 09:42marvintmStatusnew => scheduled
2023-06-30 09:42marvintmAssigned ToRetail => ranjith_qualiantech_com
2023-07-02 05:40hgbotNote Added: 0151995
2023-07-02 05:40hgbotNote Added: 0151996
2023-07-03 11:36hgbotNote Added: 0152031
2023-07-03 11:36hgbotResolutionopen => fixed
2023-07-03 11:36hgbotStatusscheduled => closed
2023-07-03 11:36hgbotFixed in Version => RR23Q4
2023-07-03 11:36hgbotNote Added: 0152032
2023-07-03 11:36hgbotNote Added: 0152033
2023-07-03 11:36hgbotNote Added: 0152034
2023-07-05 09:09rafarodaRelationship addedcaused by 0050706

Notes
(0151995)
hgbot   
2023-07-02 05:40   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/925 [^]
(0151996)
hgbot   
2023-07-02 05:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.pack/-/merge_requests/2 [^]
(0152031)
hgbot   
2023-07-03 11:36   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.pack/-/merge_requests/2 [^]
(0152032)
hgbot   
2023-07-03 11:36   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.pack [^]
Changeset: c34a6d7cd4e764c74c09fbd7a9e502ef9e50ec31
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 03-07-2023 11:51:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.pack/-/commit/c34a6d7cd4e764c74c09fbd7a9e502ef9e50ec31 [^]

Fixed ISSUE-52762: Added HQLWhereClause for Discount Products tab
* Added HQLWhereClause for Discount's Product tab & Gift Products tab
* Discount's Gift Products tab should be displayed if retail pack is present

---
M src-db/database/configScript.xml
---
(0152033)
hgbot   
2023-07-03 11:36   
Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 3f31f9fc7bbc96e6957e7110bae02149c525ddbc
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 03-07-2023 11:51:33
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/3f31f9fc7bbc96e6957e7110bae02149c525ddbc [^]

Related to ISSUE-52762: Removed HQLWhereCluase from Discounts product tab
* Discount's Gift Products tab should be displayed if retail.pack module is present

---
M src-db/database/sourcedata/AD_TAB.xml
---
(0152034)
hgbot   
2023-07-03 11:36   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/925 [^]