Describe the bug
The same gift preparation can be added to a gift record more than once regardless of the available preparations if the record is not saved. If you save with more than one of the same preparation, you are given an error message. When trying to add more than the available number of preparations to a loan, you are told that there are no more preparations available.
To Reproduce
Steps to reproduce the behavior:
Go to Interactions
Create Gift by choosing a record set or catalog numbers
Add gift preparation and select the same preparation more times than the number of preparations available
Fill in required fields and save
See error message
Expected behavior
Preparations should be marked as unavailable as seen in loans when trying to add more preparations than are available in gifts.
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug The same gift preparation can be added to a gift record more than once regardless of the available preparations if the record is not saved. If you save with more than one of the same preparation, you are given an error message. When trying to add more than the available number of preparations to a loan, you are told that there are no more preparations available.
To Reproduce Steps to reproduce the behavior:
Expected behavior Preparations should be marked as unavailable as seen in loans when trying to add more preparations than are available in gifts.
Screenshots If applicable, add screenshots to help explain your problem.
Behavior in Loan:
https://github.com/specify/specify7/assets/164079735/30b90e1c-b5eb-417d-8c49-60ee077c8db7
Behavior in Gift:
https://github.com/specify/specify7/assets/164079735/a14b3946-4dc3-440d-8b80-f59b0309cac6
Crash Report
Specify 7 Crash Report - 2024-04-12T20_50_00.994Z.txt
Please, also fill out the following information manually: