Correct me if i am wrong-
I Think the ERPNext already uses web storage to store offline POS data , but that still doesn’t solve Sync issues and randomly missing invoices .[A major and unacceptable issue].
So i need a more full proof way of storing data.
Currently the invoice record disappears from POS view after the system asumes it has been synced.
with a native app or any similar solution i wish to make it such that the invoice remains locally(on the server) even if the sync is done.
Maybe @tundebabzy s solution or any other.
The point is to store POS invoices locally as well
thus giving another level of backup.
It will also help in auditing as you can just verify the number of invoices locally stored and ones in system created by POS for a given time.
You can then delete the invoices from the file system if required.