Openbravo Issue Tracking System - POS2
View Issue Details
0054669POS2Corepublic2024-02-14 10:552024-02-19 11:05
AugustoMauch 
AugustoMauch 
immediatecriticalhave not tried
closedfixed 
5
 
24Q2 
Packaging and release
2023-11-06
main
https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/f38f5a036d4dff9b3e9f5f7083a2c0d25ab6b0e6 [^]
No
0054669: Approvals of actions without inputs are not being persisted in the backend
When doing an approval of an action that does not have any user action inputs, the approval is not being persisted in the backend
In any POS2 enviroment that contains the sampledata (i.e. livebuilds)
1- In the backoffice, update permissions to the VallBlancaUser role, so that it requires approval when executing the "Return Line" action.
2- In the backoffice, update permissions to the The White Valley Group Admin role, so that it can approve the "Return Line" action
3- Log in in the POS with the vallblanca user, make sure the VallBlancaUser role is active
4- Add a line and return it. A popup will be displayed asking for user inputs and approval. Add them (use Openbravo/openbravo in the approval), complete the ticket.
5- Go to the backend, open the Return from Customer window, check the record that was created and check that the Approval History subtab contains info related to the approval that just took place.

So far, this is the expected behaviour. Now:
6- In the backoffice, deactivate all user inputs from the Return Line action in the User Action Input window.
7- Back in POS2, refresh the masterdata so that the changes done in the backoffice are applied. Repeat steps 4 and 5, and notice how in the new Return from Customer record there is no trace about the approval that took place when returning the line
No tags attached.
depends on backport 005467024Q1 closed AugustoMauch Approvals of actions without inputs are not being persisted in the backend 
caused by feature request 0053576 closed Triage Platform Base User Action Inputs improvements 
related to defect 0054699 closed AugustoMauch [24Q1] Sales Order Line value is not present in Return From Customer || Approval History under specific flow 
Issue History
2024-02-14 10:55AugustoMauchNew Issue
2024-02-14 10:55AugustoMauchAssigned To => Triage Platform Base
2024-02-14 10:55AugustoMauchTriggers an Emergency Pack => No
2024-02-14 10:55AugustoMauchAssigned ToTriage Platform Base => AugustoMauch
2024-02-14 11:03AugustoMauchRegression level => Packaging and release
2024-02-14 11:03AugustoMauchRegression date => 2023-11-06
2024-02-14 11:03AugustoMauchRegression introduced in release => main
2024-02-14 11:03AugustoMauchRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/f38f5a036d4dff9b3e9f5f7083a2c0d25ab6b0e6 [^]
2024-02-14 11:05AugustoMauchRelationship addedcaused by 0053576
2024-02-14 12:45AugustoMauchStatusnew => scheduled
2024-02-14 16:44hgbotNote Added: 0160748
2024-02-14 23:33hgbotResolutionopen => fixed
2024-02-14 23:33hgbotStatusscheduled => closed
2024-02-14 23:33hgbotFixed in Version => 24Q2
2024-02-14 23:33hgbotNote Added: 0160761
2024-02-14 23:33hgbotNote Added: 0160762
2024-02-19 11:05lorenzofidalgoIssue cloned0054699
2024-02-19 11:05lorenzofidalgoRelationship addedrelated to 0054699

Notes
(0160748)
hgbot   
2024-02-14 16:44   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1367 [^]
(0160761)
hgbot   
2024-02-14 23:33   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 622c0b3c7b3670b9c8830214085511fc06bfd2ce
Author: Carlos Aristu <carlos.aristu@openbravo.com>
Date: 14-02-2024 15:45:05
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/622c0b3c7b3670b9c8830214085511fc06bfd2ce [^]

fixes BUG-54669: approval info not saved when no input is requested

  The approval information was not being persisted when requesting
approval only, i.e., without requesting inputs.

  This happened because in that case the inputsAndApprovals is empty at
the point where the approval information is added. So adding that
information using map() has no effect.

  To fix it in that case we now return an array with a single object
properly initialized together with the approval information.

---
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
---
(0160762)
hgbot   
2024-02-14 23:33   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1367 [^]