Openbravo Issue Tracking System - POS2
View Issue Details
0047745POS2POSpublic2021-09-23 09:592022-03-16 17:16
timothee_catteeuw 
Felixaka 
normalcriticalalways
closedinvalid 
5
 
TAP 
No
0047745: JIRA 2140 - approval in offline works but it is necessary to do each approval at least once before in online
Approvals in offline works most of time but it is necessary to do each approval at least in online once before. Then the related approval works even if you are in online mode.

Raised after testing this Mantis --> https://issues.openbravo.com/view.php?id=47652 [^]

Case 1
1. In BO, set an user action to "Require approval" for a user (User 1 below) and "Can use and approve" for an other (User 2)
2. Connect to POS with User 1
3. Try to do the action with approval
4. Enter User 2 credential to approve
5. Disconnect network from OB Central
6. Try to do the action with approval
7. Enter User 2 credential to approve
=> action can be approve

Case 2
1. In BO, set a new user action to "Require approval" for a user (User 1 below) and "Can use and approve" for an other (User 2)
2. Connect to POS with User 2, refresh data and log out
3. Connect to POS with User 1, refresh data and log out
4. Disconnect network from OB Central
7. Try to do the action with approval
8. Enter User 2 credential to approve
=> action can't be approve
=> When going back to online the approval works well
=> When going back again to offline the approval works well
No tags attached.
related to defect 0047652TAP closed jarmendariz Offline - Approval does work but confusing messages are displayed 
Issue History
2021-09-23 09:59timothee_catteeuwNew Issue
2021-09-23 09:59timothee_catteeuwAssigned To => Retail
2021-09-23 09:59timothee_catteeuwTriggers an Emergency Pack => No
2021-09-23 10:00timothee_catteeuwDescription Updatedbug_revision_view_page.php?rev_id=23104#r23104
2021-09-23 10:20timothee_catteeuwSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23106#r23106
2021-09-23 10:49alostaleNote Added: 0131985
2021-09-23 10:49alostaleStatusnew => closed
2021-09-23 10:49alostaleResolutionopen => invalid
2021-09-23 10:49alostaleRelationship addedrelated to 0047652
2022-03-16 17:16timothee_catteeuwAssigned ToRetail => Felixaka

Notes
(0131985)
alostale   
2021-09-23 10:49   
It works as expected.

It is required for a supervisor to approve on each terminal while being online once before them to be able to approve in offline. Note that supervisor information is only got during the online approval, it is not retrieved in advance; so there is no means to perform an offline approval if it was not done online in advance.