When user is offline, it should be able to save local changes in the draft into the local storage of the browser. It should be done automatically. Right now the draft is creating after first save, we need to change it to start draft at the beginning of the process.
Autosaving should also be applied when user is online.
We should check if the performance wouldn’t be bad.
Another point arose:
Added reasons are not visible when the user comes back online.
The values in the "Unaccounted Quantity" column disappear.
Unfortunately, I found one more scenario when the error occurs:
As a divo2 go to Stock Management > Physical Inventory and start a draft.
Go offline, add product and select VVM status.
Go to another tab e.g Stock Management > Physical Inventory or Home.
Open the just-created draft.
VVM Status is empty.
There are new issues after fixing the above:
1. Offline products disappear when one switch to another tab and return to online mode.
2. The Save button does not work after returning to draft (while online).
VVM Status disappears now when one return online:
Go to any draft in offline mode as divo1 or divo2.
Add some product and select VVM Status.
Go to Stock Management > Physical inventory an open the draft.
VVM Status isn’t visible.
Tested with success.
I checked all the above issues again and performed additional tests. Everything works correctly.