Bug 31268

Summary: Clearly indicate reason for failed item creation when receiving expired subscription
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: SerialsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29188
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Andrew Fuerste-Henry 2022-07-29 19:58:02 UTC
Bug 29188 points out that while the manual says one cannot receive issues in an expired subscription, Koha is currently allowing one to do so.

However, Koha *is* refusing to create an item when receiving an issue on an expired subscription. 

To recreate:
1 - create a subscription set to *not* create items, subscription end date in the past
2 - save subscription, confirm it shows as expired, confirm you can receive an issue anyway
3 - create a subscription set *to* create items, subscription end date in the past
4- save subscription, confirm it shows as expired, confirm you can get to the receiving page but setting the dropdown for the expected issue to "Arrived" does not cause an item edit box to appear
5- create a subscription set *to* create items, subscription end date in the future, number of issues set to 1
6- save subscription, receive 1 issue, confirm it works as intended
7- confirm subscription now shows a confusing "Subscription will expire on [subscription end date]" message even though the date isn't the problem
8- Attempt to receive another issue, confirm that now the item edit box won't pop up, as in step 4

In steps 4 and 8, the item edit box will appear if one attempts to receive a supplemental issue, but the item will refuse to save, giving an erroneous "missing required field" message.
Comment 1 Andrew Fuerste-Henry 2022-07-29 19:59:30 UTC
Obviously this bug will be moot if 29188 gets resolved in such a way that one can't get this far into receipt on an expired subscription.
Comment 2 Katrin Fischer 2022-11-17 12:17:40 UTC
I think we should fix that so items are still created while you can create issues.