Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055168Retail ModulesDiscounts and Promotionspublic2024-04-11 12:042024-05-15 13:25
aferraz 
SABARINATH P 
normalmajorhave not tried
closedfixed 
5
 
RR24Q3 
main
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/c4794102728f708c7dd22656d571c8f151a0db26 [^]
No
0055168: Wrong call to OB.App.State.UI.Utils.showProductSearchKey from discount engine
Discount engine is a pure function that should work from EnyoPOS, ReactPOS and WebService.
It can not use APIs that are not included in the discount engine.
*
The way to fix this would be as follows:
1.-A new utils function should be implemented in org.openbravo.retail.discounts. This new function should be returning the productIdentifier
2.-In POS2 module, the utils function defined in org.openbravo.retail.discounts should be overwritten to return the line that is causing the error

The reason behind this approach is that the new property to activate/deactivate the functionality exists only in POS2 and thus should only be available in an environment where POS2 exists.

For any doubt please contact JWE
No tags attached.
caused by feature request 0054484 closed inaki_luque Web POS display Product Search key 
Issue History
2024-04-11 12:04aferrazNew Issue
2024-04-11 12:04aferrazAssigned To => Retail
2024-04-11 12:04aferrazTriggers an Emergency Pack => No
2024-04-11 12:35aferrazRelationship addedcaused by 0054484
2024-04-11 12:37aferrazRegression introduced in release => main
2024-04-11 12:37aferrazRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/c4794102728f708c7dd22656d571c8f151a0db26 [^]
2024-04-11 12:42jorgewederagoProposed Solution updated
2024-04-11 12:42jorgewederagoStatusnew => acknowledged
2024-04-12 07:43SABARINATH PAssigned ToRetail => SABARINATH P
2024-04-12 07:43SABARINATH PStatusacknowledged => scheduled
2024-04-16 08:44hgbotNote Added: 0163246
2024-04-16 15:38hgbotNote Added: 0163292
2024-05-15 13:25hgbotResolutionopen => fixed
2024-05-15 13:25hgbotStatusscheduled => closed
2024-05-15 13:25hgbotFixed in Version => 24Q3
2024-05-15 13:25hgbotNote Added: 0164661
2024-05-15 13:25hgbotNote Added: 0164662
2024-05-15 13:25hgbotNote Added: 0164663
2024-05-15 13:25hgbotFixed in Version24Q3 => RR24Q3
2024-05-15 13:25hgbotNote Added: 0164664

Notes
(0163246)
hgbot   
2024-04-16 08:44   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/142 [^]
(0163292)
hgbot   
2024-04-16 15:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2570 [^]
(0164661)
hgbot   
2024-05-15 13:25   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: d677b335851ef7eec5943a0c60865c880c3114af
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 15-05-2024 11:24:40
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/d677b335851ef7eec5943a0c60865c880c3114af [^]

Fixed ISSUE-55168: Overwritten productSearchKey() on retail.discounts

---
M web-jspack/org.openbravo.pos2/src/model/user-interface/UIExtension.js
---
(0164662)
hgbot   
2024-05-15 13:25   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2570 [^]
(0164663)
hgbot   
2024-05-15 13:25   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/142 [^]
(0164664)
hgbot   
2024-05-15 13:25   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 59b2f8c0168a9e3aa794b4610cce853fd16f8801
Author: Sabarinath <sabarinath.palanisamy.ext@openbravo.com>
Date: 15-05-2024 11:24:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/59b2f8c0168a9e3aa794b4610cce853fd16f8801 [^]

Fixed ISSUE-55168: Created util function that returns product searchkey/name

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/by-total-free-item-discount.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---