Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054543Retail ModulesGift cards and gift voucherspublic2024-02-01 13:002024-03-01 12:13
ngarcia 
sreehari 
urgentmajoralways
closedfixed 
5
 
 
No
0054543: User without access to the legal organization cannot cancel in the backoffice a gift card they create in the POS
User without access to the legal organization cannot cancel in the backoffice a gift card they create in the POS
In https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi: [^]

In the backoffice:
In Role - Organization tab, leave only 'Posets Store' organization to 'PosetsUser' role
In Role - Window tab, add 'Gift Card Instance' as Editable Field = 'Y'

In the POS:
https://livebuilds.openbravo.com/context/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=PS-1 [^]

Create a order
Add a product and pay it
Click on Verified Return and return the previously created order. Select Credit Note payment method and complete it
From the menu, go to the Back Office
Open the Gift Card Instance window
Check the Credit Note was created in the legal with accounting organization (White Valley Spain S.A)
Click on Cancel Gift Card and check the following error is shown:

Close Card
Selected Gift Card is defined in an Organization which is not accessible by current user/role
No tags attached.
Issue History
2024-02-01 13:00ngarciaNew Issue
2024-02-01 13:00ngarciaAssigned To => Retail
2024-02-01 13:00ngarciaTriggers an Emergency Pack => No
2024-02-01 13:00ngarciaIssue Monitored: networkb
2024-02-09 08:12sreehariAssigned ToRetail => sreehari
2024-02-09 12:55sreehariStatusnew => scheduled
2024-02-12 07:38hgbotNote Added: 0160602
2024-03-01 12:13hgbotResolutionopen => fixed
2024-03-01 12:13hgbotStatusscheduled => closed
2024-03-01 12:13hgbotNote Added: 0161500
2024-03-01 12:13hgbotNote Added: 0161501

Notes
(0160602)
hgbot   
2024-02-12 07:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/299 [^]
(0161500)
hgbot   
2024-03-01 12:13   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: 919171ca609d51ae555566b4ac13261aae389b0d
Author: Sreehari Venkataraman <sreehari.venkataraman.ext@openbravo.com>
Date: 01-03-2024 12:10:09
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/919171ca609d51ae555566b4ac13261aae389b0d [^]

Fixes ISSUE-54543: Skipped Organization check by setting false

---
M src/org/openbravo/retail/giftcards/process/CancelGiftCardProcessHandler.java
---
(0161501)
hgbot   
2024-03-01 12:13   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/299 [^]