Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0047245 | POS2 | POS | public | 2021-06-24 15:59 | 2021-10-04 12:14 |
|
Reporter | timothee_catteeuw | |
Assigned To | adrianromero | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | TAP | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0047245: JIRA 2124 - Axis C3 initialization start for every login |
Description | For every login to Webpos, Axis C3 initialization start, here there are 2 possible behaviors :
- If the AxisC3 init configuration was not done, an error message appears
--> that case has to be correctly managed if no AxiC3 is configured on the related touchpoint
- Otherwise Axis C3 initialization start and check every components related to payment methods
In both cases, this initialization has not to be done for each login, it is really annoying because that will waste cashier's time as soon as he want to use the till.
2 possibilities in order to avoid this behavior :
- launch the initialization just once a day (or less frequently)
--> ideally trough a parameter in channel touchpoint menu allowing to configure the time between 2 init
- launch the initialization in background mode. It will allow to use WebPOS but the card payment method will not be available in that case before finishing the process |
Steps To Reproduce | Tested with a channel touchpoint correctly configured in Axis C3 terminal configuration available in the related menu on BO (cf. this doc http://wiki.openbravo.com/wiki/Retail:AXISC3_Payment_Provider [^])
- Host : localhost
- Port : 9518
- Terminal : 00000165
- Prints info checked
- interface : network
Log in WebPOS
The application launch an initialization of payment terminal
Log out
Login
The application launch an initialization of payment terminal
and so on.
|
Proposed Solution | The proposal is to continue executing the initialization in the login but only if the device has not been initialized in a period of X hours. X will be a value configured at POS terminal level. If value equals to 0 (the default to not to change the current behaviour), initialization will be executed in every login. A good configuration value to guarantee the initialization will be executed every day can be 16 hours instead of 24 hours to be sure that initialization will happen every day even if one day the cashier logs in some minutes before the previous day.
This way if for example, the configuration value is 16 hours, if the POS terminal logs in at 9:00am and executes the initialization, in the next logins during the day the initialization will not be executed. But if the cashier logs in after 1:00am of the day after, in that moment the initialization will be executed.
This solution must be implemented in the module org.openbravo.retail.asyncpayprovider. As this module is currently in charge of managing the initialization of the device. Now, the function isLoggedIn() is used to check whether the initialization is executed or not. And the flag is set to true in the login, and to false in the logout.
The idea is to add a new check and execute the initialization not only if !isLoggedIn() but also if the previous initialization has happened before than the number of hours configured, and then save the last time the initialization has been executed in the localstorage the same way the logged in flag is saved in the local storage. This way it can be checked when the last initialization has been executed.
Note that the loggedin flag must be set to true and stored whether the initialization has been executed or not.
Note also that there is a menu option to execute the initialization. Saving the last time initialization has been executed must be done in both cases no matter when the initialization happens, in the login, or executing the menu option. I mean the initialization process must be responsible of saving in the local storage the last time the initialization has been executed.
|
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0047614 | TAP | closed | adrianromero | JIRA 2124 - Axis C3 initialization start for every login |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-06-24 15:59 | timothee_catteeuw | New Issue | |
2021-06-24 15:59 | timothee_catteeuw | Assigned To | => timothee_catteeuw |
2021-06-24 15:59 | timothee_catteeuw | Triggers an Emergency Pack | => No |
2021-06-24 15:59 | timothee_catteeuw | Summary | JIRA 2124 - Axis C3 initialization done for every login => ISSUE NOT FINISHED / IN PROGRESS (JIRA 2124 - Axis C3 initialization done for every login) |
2021-06-24 16:24 | timothee_catteeuw | Description Updated | bug_revision_view_page.php?rev_id=22777#r22777 |
2021-06-24 16:24 | timothee_catteeuw | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22779#r22779 |
2021-06-24 16:54 | timothee_catteeuw | Description Updated | bug_revision_view_page.php?rev_id=22780#r22780 |
2021-06-24 16:55 | timothee_catteeuw | Assigned To | timothee_catteeuw => |
2021-06-24 16:55 | timothee_catteeuw | Summary | ISSUE NOT FINISHED / IN PROGRESS (JIRA 2124 - Axis C3 initialization done for every login) => JIRA 2124 - Axis C3 initialization start for every login |
2021-06-24 16:57 | timothee_catteeuw | Description Updated | bug_revision_view_page.php?rev_id=22781#r22781 |
2021-06-24 16:57 | timothee_catteeuw | Assigned To | => Retail |
2021-06-25 12:21 | adrianromero | Note Added: 0129793 | |
2021-06-25 12:25 | adrianromero | Note Edited: 0129793 | bug_revision_view_page.php?bugnote_id=0129793#r22789 |
2021-06-25 13:01 | dmiguelez | Note Added: 0129794 | |
2021-06-25 13:01 | dmiguelez | Severity | major => minor |
2021-06-25 13:01 | dmiguelez | Type | defect => feature request |
2021-06-29 17:44 | timothee_catteeuw | Note Added: 0129961 | |
2021-07-20 11:08 | adrianromero | Proposed Solution updated | |
2021-07-20 11:13 | adrianromero | Proposed Solution updated | |
2021-08-23 09:56 | dmiguelez | Resolution time | => 1630274400 |
2021-08-24 13:19 | dmiguelez | Status | new => scheduled |
2021-08-24 13:19 | dmiguelez | Assigned To | Retail => adrianromero |
2021-08-24 13:43 | hgbot | Note Added: 0131312 | |
2021-08-24 13:45 | hgbot | Note Added: 0131322 | |
2021-09-01 12:19 | hgbot | Resolution | open => fixed |
2021-09-01 12:19 | hgbot | Status | scheduled => closed |
2021-09-01 12:19 | hgbot | Note Added: 0131472 | |
2021-09-01 12:19 | hgbot | Note Added: 0131473 | |
2021-09-01 12:19 | hgbot | Note Added: 0131474 | |
2021-09-01 12:19 | hgbot | Note Added: 0131475 | |
2021-09-01 12:21 | hgbot | Note Added: 0131476 | |
2021-09-01 12:21 | hgbot | Note Added: 0131477 | |
2021-09-01 12:21 | hgbot | Note Added: 0131478 | |
2021-09-01 12:21 | hgbot | Note Added: 0131479 | |
2021-09-01 13:21 | hgbot | Note Added: 0131483 | |
2021-09-01 14:03 | guilleaer | Status | closed => new |
2021-09-01 14:03 | guilleaer | Resolution | fixed => open |
2021-09-01 14:03 | guilleaer | Status | new => scheduled |
2021-09-01 14:03 | guilleaer | Status | scheduled => resolved |
2021-09-01 14:03 | guilleaer | Resolution | open => fixed |
2021-09-01 14:03 | guilleaer | Status | resolved => closed |
2021-10-04 12:01 | hgbot | Note Added: 0132120 | |
2021-10-04 12:14 | hgbot | Note Added: 0132121 | |
Notes |
|
(0129793)
|
adrianromero
|
2021-06-25 12:21
(edited on: 2021-06-25 12:25) |
|
This is the intended behaviour. As especified by the he AXISC3 integration documentation by Ingenico, the POS APPLICATION must send an initialization command to the C3 to initialize the payment. And it is recomended upon the opening and closing of each sales session.
Actually the normal operation of a POS is to login one time or two a day. Initalization takes few seconds.
|
|
|
|
Updated as Feature Request and minor due to the comment from Adrian.
The feature request would be to try to store information for one day, for example, to avoid some of the actual calls |
|
|
|
Feedback received by email :
→ Indeed, initialization must be performed daily at the start and end of the day. Therefore, initialization at the start of each session is not useful if the initialization has already been performed at the start of the day
So behavior to adapt and as a reminder :
2 things to keep in mind → in restaurant context, users close and open their sessions frequently in comparaison with retail. And secondly, according to my tests we need to wait for at least 15-20 seconds, that’s very long.
Correction to plan. |
|
|
(0131312)
|
hgbot
|
2021-08-24 13:43
|
|
|
|
(0131322)
|
hgbot
|
2021-08-24 13:45
|
|
|
|
(0131472)
|
hgbot
|
2021-09-01 12:19
|
|
|
|
(0131473)
|
hgbot
|
2021-09-01 12:19
|
|
|
|
(0131474)
|
hgbot
|
2021-09-01 12:19
|
|
|
|
(0131475)
|
hgbot
|
2021-09-01 12:19
|
|
|
|
(0131476)
|
hgbot
|
2021-09-01 12:21
|
|
|
|
(0131477)
|
hgbot
|
2021-09-01 12:21
|
|
|
|
(0131478)
|
hgbot
|
2021-09-01 12:21
|
|
|
|
(0131479)
|
hgbot
|
2021-09-01 12:21
|
|
|
|
(0131483)
|
hgbot
|
2021-09-01 13:21
|
|
|
|
(0132120)
|
hgbot
|
2021-10-04 12:01
|
|
|
|
(0132121)
|
hgbot
|
2021-10-04 12:14
|
|
|