- Log into snapshot as diku_admin
- go to Settings->inventory->statistical codes
- create a new statistical code. the actual data does not matter as long as it's valid.
- Save the new code data
- Attempt to delete the new code
Success modal showing code deleted
modal saying "This Statistical code cannot be deleted, as it is in use by one or more records." This is impossible, as it was just created.
Note: the actual deletion operation is successful, as you can see if you refresh the screen. the problem is that the UI is telling the user it is not erroneously.