Openbravo Issue Tracking System - POS2
View Issue Details
0050289POS2POSpublic2022-09-20 09:222022-10-25 14:17
meriem_azaf 
meriem_azaf 
normalmajorhave not tried
closedfixed 
5
 
23Q1 
No
0050289: Verified return doesn't work anymore
When I select an old paid transaction in the order screen, I can’t do a verified return, an error appear whatever I select.
1- login POS2.
2- open an old paid transaction.
3- select verified return option.
4- select a product.
5- click apply button.

the error appears
No tags attached.
png image-20220912-155802.png (71,108) 2022-09-20 09:22
https://issues.openbravo.com/file_download.php?file_id=17534&type=bug
png
Issue History
2022-09-20 09:22meriem_azafNew Issue
2022-09-20 09:22meriem_azafAssigned To => Retail
2022-09-20 09:22meriem_azafFile Added: image-20220912-155802.png
2022-09-20 09:22meriem_azafTriggers an Emergency Pack => No
2022-09-20 09:22meriem_azafAssigned ToRetail => meriem_azaf
2022-09-20 09:22meriem_azafStatusnew => scheduled
2022-09-20 10:23hgbotNote Added: 0141245
2022-10-25 14:17hgbotResolutionopen => fixed
2022-10-25 14:17hgbotStatusscheduled => closed
2022-10-25 14:17hgbotNote Added: 0142565
2022-10-25 14:17hgbotFixed in Version => 23Q1
2022-10-25 14:17hgbotNote Added: 0142566

Notes
(0141245)
hgbot   
2022-09-20 10:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1219 [^]
(0142565)
hgbot   
2022-10-25 14:17   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1219 [^]
(0142566)
hgbot   
2022-10-25 14:17   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: c15d1f8a7cef4531a2e00353946273e397d29f59
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 25-10-2022 14:04:56
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/c15d1f8a7cef4531a2e00353946273e397d29f59 [^]

Fixes ISSUE-50289: Verified return doesn't work anymore

When I select an old paid transaction in the order screen, I can’t do a verified return, an error appear whatever I select.

The problem is the user has no access to this user action "Verified return Ticket".

Even the user has no permission for this user action, the code should work. So we add a condition, if user has permission this fonctionnality will work correctly if not we will show a notification message to this user.

---
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsForm/VerifiedReturnsForm.jsx
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsForm/__test__/VerifiedReturnsForm.test.jsx
---