Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0048935 | POS2 | Core | public | 2022-03-30 23:52 | 2022-03-30 23:52 |
Reporter | mtaal | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 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 | 0048935: Platform: provide api to update terminal in terminal cache | ||||
Description | Business logic stores property in the Terminal object to be used in the client. The Terminal object is loaded from the server. The client side sometimes updates these properties by doing a webservice request to the server. The corresponding data in the terminal object has to be updated as well. Both the terminal object itself as well as the offline cached object. We could force an incremental refresh to do this, but this would be strange for the user who suddenly sees an incremental refresh. There is currently an api which can be used to do this. One example can be found in the restaurant module: const newTerminal = { ...Terminal.terminal }; newTerminal.obpos2OrgSchema = payload.id; Terminal.set('terminal', newTerminal); OB.App.OfflineSession.updateTerminalInfo( Terminal.context.user.id, Terminal.serialize() ); But apparently the updateTerminalInfo is an internal api. Therefore the request to provide an official api to update the terminal object and the cached version for offline use. | ||||
Steps To Reproduce | See description | ||||
Proposed Solution | Official api to update the terminal object fo offline use | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-03-30 23:52 | mtaal | New Issue | |||
2022-03-30 23:52 | mtaal | Assigned To | => Triage Platform Base | ||
2022-03-30 23:52 | mtaal | Triggers an Emergency Pack | => No |
There are no notes attached to this issue. |