Openbravo Issue Tracking System - POS2
View Issue Details
0052733POS2POSpublic2023-06-13 15:222023-06-20 08:07
noemieroussel 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
approved
Gold
No
0052733: 'Role' criteria for manual discounts : POS1=OK, POS2=KO
In discounts and promotions, it is not possible to add "Role" criteria in POS2.

video POS1:https://drive.google.com/file/d/1joSheEN3aXSRvDuCOlCGGlBllio6n3UR/view [^]

video POS2: https://drive.google.com/file/d/1Ul6Isnu73gsINCJkhytixo9lG_MFaIzk/view?usp=sharing [^]
1-Go to the backoffice.

2-Go to the "Discounts and promotion window"

3-Create a promotion with:

Name:Test
Starting date: Today
Promotion type: Discretionary fixed amount
Discounted amount=10 percent
Application method=Discretionary

4-Go to the WebPOS.

5-Add a new product on the ticket.

6-Click on the product line.

7-Select the option "Discount" and click on the promotion recently created.

-> See that the promotion applies

8-In the backoffice, add on "Role" VallBlancauser (the user used in the WebPOS)

9-Save the record.

10- Delete the ticket previously created and refresh master data.

11-Add the same product

12-Click on the product line

13-Select the discount option

--> See that the promotion is not shown
implement the use of role criteria on POS2
No tags attached.
Issue History
2023-06-13 15:22noemierousselNew Issue
2023-06-13 15:22noemierousselAssigned To => Retail
2023-06-13 15:22noemierousselOBNetwork customer => Gold
2023-06-13 15:22noemierousselTriggers an Emergency Pack => No
2023-06-14 12:53ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-06-15 09:15ranjith_qualiantech_comStatusnew => scheduled
2023-06-16 07:21hgbotMerge Request Status => open
2023-06-16 07:21hgbotNote Added: 0151245
2023-06-19 09:39guillermogilProjectRetail Modules => POS2
2023-06-19 09:39guillermogilCategoryDiscounts and Promotions => POS
2023-06-20 08:07hgbotMerge Request Statusopen => approved
2023-06-20 08:07hgbotResolutionopen => fixed
2023-06-20 08:07hgbotStatusscheduled => closed
2023-06-20 08:07hgbotNote Added: 0151337
2023-06-20 08:07hgbotFixed in Version => RR23Q3
2023-06-20 08:07hgbotNote Added: 0151338

Notes
(0151245)
hgbot   
2023-06-16 07:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/111 [^]
(0151337)
hgbot   
2023-06-20 08:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/111 [^]
(0151338)
hgbot   
2023-06-20 08:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: e5bb5db1e4acac4acfeca3b1b48b5385908a1008
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 15-06-2023 13:42:19
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/e5bb5db1e4acac4acfeca3b1b48b5385908a1008 [^]

Fixed ISSUE-52733: Role details should be fetched from TerminalProperty
* Role details should be fetched from TerminalProperty instead of context

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---