Projects:Masterdata Using IndexedDB
Introduction
The WebPOS now uses IndexedDB instead of WebSQL to store the masterdata it needs to support offline operation. This includes all masterdata entities, including:
- Products, prices, assortment
- Business partners and locations
- Taxes
- Discounts
Developers will need to take this into account from now on, as the API has changed significantly, and code needs to be updated:
- For Core entities, queries will need to be updated to use the new API as all models have been migrated
- For Custom entities, models will eventually need to be migrated to the new API. WebSQL is still supported for now for custom entities, but this support will eventually be removed, so everybody is encouraged to do this migration as soon as possible.