Describe the bug
Users can set the value of the quantity returned of a loan preparation to lower than 0 and save the Loan record it is linked to. This does not seem to affect the count available or actual count amount of the preparation but is still visible on the Loan Preparations form.
To Reproduce
Steps to reproduce the behavior:
Create or use an existing loan record
Return the record and save
Click on the "LrP" icon to open the Loan Return Preparations form
Lower the value to a negative number and save the Loan record.
Expected behavior
Currently, if a number is set lower than 0 in the quantity resolved field, it returns to the original value when the Loan form is save; applying this behavior to the quantity returned field would prevent the issue.
Describe the bug Users can set the value of the quantity returned of a loan preparation to lower than 0 and save the Loan record it is linked to. This does not seem to affect the count available or actual count amount of the preparation but is still visible on the Loan Preparations form.
To Reproduce Steps to reproduce the behavior:
Expected behavior Currently, if a number is set lower than 0 in the quantity resolved field, it returns to the original value when the Loan form is save; applying this behavior to the quantity returned field would prevent the issue.
Screenshots
https://github.com/specify/specify7/assets/164079735/4250a98b-17dd-4ddd-af58-a31d91e8be5a
Specify 7 System Information - 2024-06-21T20_47_29.914Z.txt
Please, also fill out the following information manually: