| Summary: | When modifying a subscription with received issues, prediction pattern doesn't start from next issue date | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Arthur Suzuki <arthur.suzuki> |
| Component: | Serials | Assignee: | Bugs List <koha-bugs> |
| Status: | Needs Signoff --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | esther.melander, mathsabypro |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17656 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26054 |
||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
| Attachments: |
Bug 40159: Fix prediction pattern when editing an ongoing subscription
renewal doesn't show the proper number of issues another example screenshot for comment 6 |
||
|
Description
Arthur Suzuki
2025-06-18 07:53:33 UTC
Created attachment 183320 [details] [review] Bug 40159: Fix prediction pattern when editing an ongoing subscription Test plan : - Without the patch, create a subscription for a record with weekly or monthly subscription length and a first acquisition date long ago. - Receive at least one issue for this subscription. - Edit the subscription and set the next acquisition date to today. - Check that testing the prediction pattern doesnt show the number of issues set in the subscription length (less issues). - Apply patch - Test the prediction pattern again, it will show the proper number of issues. I tried testing this bug and I'm not sure I'm seeing what is described before the patch is applied. I tried creating a subscription without the patch, tested the numbering pattern and had the correct number of issues. Would it be possible to get an example screenshot of the subscription settings that do not show the correct number of issues when tested? Created attachment 184808 [details]
renewal doesn't show the proper number of issues
Created attachment 184809 [details]
another example
Hi Esther, The problem occurs when selecting "months" or "weeks" rather than "number of issues" when trying the numbering pattern. Best, Arthur The behaviour of prediction models remains a bottomless mystery to me, and the manual isn't much help. Maybe I'm not knowledgeable enough on the subject, but I've just tested it and can't see any difference between the behaviour with and without the patch. Here's a screenshot. From the manuel I read that the « 1st issue publication date » is the « date from which the prediction pattern will start » 1st issue publication date : June 1st 2024 Frequency : 1/month Subscription length : 12 months Subscription start date : 01/01/2025 Subscription start date : blank Numbering pattern : Volume, number Parameters for the prediction pattern : - Begins with VOLUME = 2024 ; Number = 6 (it must fit the information about the 1st issue used for calculating the predicton pattern, so june 2024) - Inner counter = 5 (because before june 2024, 5 issues have been published) The prediction pattern seems the same with and without the patch, and seems correct But when I try to receive an actual issue, Koha expect the issue « Vol 2024, No. 6 » published on « 06/01/2024 » and expected on « 06/01/2024 ». Same behavior with and without the patch. If my subscription begins the 01/01/2025, should not Koha expect as the 1st issue the « Vol. 2025, no. 1 » ? Created attachment 188125 [details] screenshot for comment 6 Sorry, I was so focused on understanding the module that I didn't read the test plan carefully or understand the problem that was raised! I'll check now to see what happens if an issue has been received. I suppose when you wrote "set the next acquisition date to today" you were making reference to the "Set the date received to today?" button while "multireceving" issues ? Reception date is not the same thing as aquisition date. It is hard to know how Koha is **supposed** to work. The multireceiving feature is not in the manual, not to speak of the "Set the date received to today?" The manual does not specify how Koha should behave if the date of the first issue is earlier than the subscription start date. Are we sure that this type of configuration is allowed? |