Hi,
We are trying to create a billing system, where we are trying to generate a bill number sequentially. Initially we kept the last generated number in localStorage, but that was unreliable since when the system unexpectedly shut down, the localStorage data was out of sync/stale. So we moved to QZ (we were already using QZ for printing) to persist the sequence directly in a file, so that it has fault tolerance.
But now we are getting the following error sometimes, "_qz.websocket.sendData is not a function" and due to this the file is not being read and the bill number sequence is resetting back to 1.
How can we fix this?
Let us know, if you need any code samples.
Thanks