msupply-foundation / mobile

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

Trying to dispense or edit or see history through the dispensing functionality for a specific patient crashes the app. #5247

Open alainsussol opened 1 year ago

alainsussol commented 1 year ago

Describe the bug

On Dispensing to a patient (Primos, Tercio) clicking on any options seems to trigger a crash. Not quite like what is described in #5220 but might be related. Furthermore it creates an empty customer invoice that has a status of "cn" which also crash when we try to open it.

https://github.com/openmsupply/mobile/assets/11624516/9ab8713e-9c42-4448-82f7-ee694c2481f6

Here is my datafile: https://www.dropbox.com/s/dzlpappoc8pprcu/Kiribati-vac-Data%2020221203.zip?dl=0 . I was using store Team40 of site Kir40. But you had probably a couple of bugsnag issues related to this. I have tested on the 28/06/2023.

To reproduce

I am not completely sure. It happens for only one patient I have created and for which I created a vaccination.

Steps to reproduce the behaviour: For the patient Tercio

  1. Go to 'Dispensing'. Filter to patient Tercio
  2. Click on 'Edit' or 'Dispensing' or on the history icon
  3. See error

Expected behaviour

Not crashing.

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

Testing vaccination

arjunSussol commented 1 year ago

Hi @alainsussol we haven't noticed the crash as mentioned but it could be related to #5220 as you mentioned. I have fixed that issue and released a rc version for now. I am going to release 8.6.6 after rc testing, and hoping that this issue should be fixed. If yes, then please close the issue. Latest release of mobile v8.6.6 will be notified via TG mobile group.