Openbravo Issue Tracking System - POS2
View Issue Details
0051381POS2Corepublic2023-01-16 16:572023-01-20 10:32
dorian_robillard 
montse_cabanas 
urgentmajoralways
closedfixed 
5
 
 
No
0051381: For a user non admin, impossible to do a cross store return if the role of the user doesn't have the original organisation
For a user non admin, impossible to do a cross store return if the role of the user doesn't have the original organisation filled in the org access tab
1) In livebuild put the white valley spain as cross store organidation for Poste store and Vall blanca store
add the user action access : Return verified return for Vall blanca manual role

2) Connect to VBS-2 as Vallblanca
3) Change the role in POS "Vall blanca manual"
4) Go to the order list and seach for PS1/00001
5) Do a verified return on this order

A message is displayed : Tax is not found for the Product
A retunr can be done by a user eveni if its role doesn't have access to the original organisation
No tags attached.
png Cross return.png (133,582) 2023-01-16 16:57
https://issues.openbravo.com/file_download.php?file_id=18035&type=bug
png
Issue History
2023-01-16 16:57dorian_robillardNew Issue
2023-01-16 16:57dorian_robillardAssigned To => Triage Platform Base
2023-01-16 16:57dorian_robillardFile Added: Cross return.png
2023-01-16 16:57dorian_robillardTriggers an Emergency Pack => No
2023-01-17 09:03aferrazAssigned ToTriage Platform Base => montse_cabanas
2023-01-18 10:58hgbotNote Added: 0145539
2023-01-20 10:32hgbotNote Added: 0145684
2023-01-20 10:32hgbotResolutionopen => fixed
2023-01-20 10:32hgbotStatusnew => closed
2023-01-20 10:32hgbotFixed in Version => RR23Q2
2023-01-20 10:32hgbotNote Added: 0145685

Notes
(0145539)
hgbot   
2023-01-18 10:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1037 [^]
(0145684)
hgbot   
2023-01-20 10:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1037 [^]
(0145685)
hgbot   
2023-01-20 10:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: f2fa5832cd5d3387e6d9ef886ddaa9dbe359377b
Author: Montserrat CabaƱas <montserrat.cabanas@openbravo.com>
Date: 20-01-2023 09:32:52
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/f2fa5832cd5d3387e6d9ef886ddaa9dbe359377b [^]

Fixes ISSUE-51381: Avoid tax not found for product error when doing a cross store return

With some roles it is not possible to make Verified returns, it gives error "Tax not found for product ...".
Remove organization filter when loading original order taxes and discounts as the query is already filtering by order line id.

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---