Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2025 Vistas

I need a JavaScript example / method to reload point_of_sale if POS session state is closed.

For example, if (this.env.pos.pos_session.state == 'closed')

reload()

any help will be greatly appreciated.



Avatar
Descartar
Mejor respuesta

Hi,


Try this 

if (this.env.pos.pos_session.state === 'closed') {

    window.location.reload();

}


Hope it helps


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
ago 23
2914
1
may 25
8225
0
abr 15
6436
0
nov 23
38
1
nov 23
1584