Openbravo Issue Tracking System - POS2
View Issue Details
0051518POS2Corepublic2023-01-31 14:412023-02-01 12:57
njimenez 
njimenez 
normalmajorhave not tried
closedfixed 
5
 
23Q2 
No
0051518: The user action reasons and approvals persisted info can be duplicated in some cases
If a state action on its hooks execution calls another state action, the persisted information on approvals history window is registered twice.

Even it is a bad practice to call a state action from the post hook of another state action, as this is a case that its recurring we are going to implement some improvements to avoid this situation.
1. Configure a user action reasons for verify return
2. Go the POS2 application
3. Create a verify return and provide a user action reason
4. Finish the verify return
5. Go to the backoffice -> Returns from customer window and see how the approval reason has been saved twice.
.
No tags attached.
related to feature request 0050868 closed caristu Persist user actions reasons and approvals 
Issue History
2023-01-31 14:41njimenezNew Issue
2023-01-31 14:41njimenezAssigned To => njimenez
2023-01-31 14:41njimenezTriggers an Emergency Pack => No
2023-01-31 14:42njimenezRelationship addedrelated to 0002755
2023-01-31 14:42njimenezRelationship deletedrelated to 0002755
2023-01-31 14:42njimenezRelationship addedrelated to 0050868
2023-01-31 14:54hgbotNote Added: 0146085
2023-02-01 12:52hgbotNote Added: 0146117
2023-02-01 12:52hgbotResolutionopen => fixed
2023-02-01 12:52hgbotStatusnew => closed
2023-02-01 12:52hgbotFixed in Version => 23Q2
2023-02-01 12:52hgbotNote Added: 0146118
2023-02-01 12:57caristuSummaryThe user action reasons and approvals can be persisted twice => The same user action reasons and approvals persisted info can be duplicated
2023-02-01 12:57caristuSummaryThe same user action reasons and approvals persisted info can be duplicated => The user action reasons and approvals persisted info can be duplicated in some cases

Notes
(0146085)
hgbot   
2023-01-31 14:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/972 [^]
(0146117)
hgbot   
2023-02-01 12:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/972 [^]
(0146118)
hgbot   
2023-02-01 12:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 9d1d60f092fe8c5b178118adb089b6b4b98c042e
Author: Natalia Jimenez <natalia.jimenez@openbravo.com>
Date: 01-02-2023 11:52:43
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/9d1d60f092fe8c5b178118adb089b6b4b98c042e [^]

Fixed BUG-51518: avoid generate duplicated reasons and approvals persisted info

---
M web-jspack/org.openbravo.core2/src/core/user-action/UserAction.js
M web-jspack/org.openbravo.core2/src/core/user-action/__test__/UserAction.test.js
---