Openbravo Issue Tracking System - POS2
View Issue Details
0048935POS2Corepublic2022-03-30 23:522022-03-30 23:52
mtaal 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
No
0048935: Platform: provide api to update terminal in terminal cache
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.
See description
Official api to update the terminal object fo offline use
No tags attached.
Issue History
2022-03-30 23:52mtaalNew Issue
2022-03-30 23:52mtaalAssigned To => Triage Platform Base
2022-03-30 23:52mtaalTriggers an Emergency Pack => No

There are no notes attached to this issue.