msupply-foundation / mobile

Open source mobile app for medical inventory control
http://msupply.org.nz/mobile
Other
43 stars 27 forks source link

Serial number for records seems to start at 0 for new stores #5465

Open nishaDangol-Sussol opened 6 months ago

nishaDangol-Sussol commented 6 months ago

Describe the bug

As the title says, similar to https://github.com/msupply-foundation/msupply/issues/13047 Only happening for mSupply mobile!

To reproduce

Steps to reproduce the behaviour:

  1. Get a sync setup (mine is Mirror sync).
  2. From cloud, Create a new mobile site and do the minimum(user setups, store-visibilities)
  3. From mobile tablet, initialise the newly created site and login
  4. From desktop remote, create a CI to that mobile site and sync (yes, will need a stock transfer!)
  5. Back on mobile, sync and open SI list
  6. See error: the SI number starts from 0
  7. You can see the same case for requisitions as well!

Expected behaviour

Serial numbers shouldn't start with 0

Proposed Solution

Leave if you don't know how to fix/implement. Edit this issue description and explain here if you know the best path of implementing the fix within the codebase.

Version and device info

Additional context

2024-05-02: ND again encountered same problem in mobile v8.6.9 with mSupply-Cloud on v7-14-00