Openbravo Issue Tracking System - POS2
View Issue Details
0057990POS2POSpublic2025-02-14 11:172025-02-19 07:08
gowthamveeramuthu 
sreehari 
highminoralways
closedfixed 
5
 
 
No
0057990: Error when completing the ticket "With your current role this action is not allowed"
we have enabled loyalty program and defined basic needed details
and added loyalty program to anonymous customer and add points.
then switch to manual role.
then complete the ticket, ticket will be completed
but in bottom left you can see the error "With your current role this action is not allowed".
in Backoffice
define the loyalty program(category,status,earn rule)

in POS
login with "vallblanca" user with role "VallBlancaUser"
click on VBS customer and search "VBS customer" and add loyalty program and add points. complete the ticket.
switch role to "VallBlancaManual".
let it be a "VBS cusomer"(dont search and assign the loyalty now)
add product and complete the ticket
now the error occurs
the error should not be shown
No tags attached.
png LoyaltyError.png (937,059) 2025-02-14 11:17
https://issues.openbravo.com/file_download.php?file_id=20910&type=bug
Issue History
2025-02-14 11:17gowthamveeramuthuNew Issue
2025-02-14 11:17gowthamveeramuthuAssigned To => Retail
2025-02-14 11:17gowthamveeramuthuFile Added: LoyaltyError.png
2025-02-14 11:17gowthamveeramuthuTriggers an Emergency Pack => No
2025-02-14 11:25guillermogilAssigned ToRetail => guilleaer
2025-02-14 11:32guillermogilStatusnew => acknowledged
2025-02-18 08:02sreehariAssigned Toguilleaer => sreehari
2025-02-18 08:03sreehariStatusacknowledged => scheduled
2025-02-18 10:28hgbotNote Added: 0175800
2025-02-19 07:08hgbotNote Added: 0175842
2025-02-19 07:08hgbotResolutionopen => fixed
2025-02-19 07:08hgbotStatusscheduled => closed
2025-02-19 07:08hgbotNote Added: 0175843

Notes
(0175800)
hgbot   
2025-02-18 10:28   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/81 [^]
(0175842)
hgbot   
2025-02-19 07:08   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/81 [^]
(0175843)
hgbot   
2025-02-19 07:08   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.loyalty.programs [^]
Changeset: e6cf16b801279d12e8f1f3004461b0b841e59858
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 19-02-2025 11:35:50
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/commit/e6cf16b801279d12e8f1f3004461b0b841e59858 [^]

Fixes ISSUE-57990: Added setAdminMode for getting loyalty points
*code review changes

---
M src/org/openbravo/retail/loyalty/programs/process/GetPointsToBeGeneratedForTicket.java
---