Stock on Hand table pagination not working in offline mode
Pagination is not working in Stock on Hand table in offline mode.
This issue is caused by incorrect caching of the data on this page (new entry is created in the db for every page).
We do not want to cache and replace data in PouchDB when the pagination parameter is provided in the request
We need to alter how the pagination for Stock on Hand works in the offline mode - it needs to happen on the frontend side (RegisterList)
A separate ticket was created for all minor issues with pagination and displaying the right number of items
The main goal of this ticket was to fix the pagination in Stock on Hand table in offline mode and this feature is working fine.
Pagination is working in Stock on Hand table in offline mode, but I see few small random bugs. It is hard to reproduce it, but it always happens when I switch mode from offline to online and from online to offline.
When I switch mode from offline to online we can see that the table with 3 items is displayed but the pagination disappeared and below the table, we can see the text that no items are visible ( Firefox )
Here we can see that during change the mode in one moment the pagination is blocked, we cannot switch the page and the wrong number of items is displayed. It shows 0 out of 10 but we have here 13 items. ( Firefox )
Here also a random situation from Chrome. During change the mode I observed that in one moment we cannot see the page numbers.
And the last one from Firefox. During changing the mode from online to offline we cannot see the product items but it should show 10 out of 13.