Bug 29934

Summary: Previous issue should follow makePreviousSerialAvailable when using supplemental issues
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   
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-01-24 21:11:15 UTC
makePreviousSerialAvailable misses a couple of issues when one creates a supplement:

1 - turn on makePreviousSerialAvailable
2 - make subsciption, create item record, itemtype=A, item type for older issues=B
3 - receive issue 1 
4 - #1 is created as itype A
5 - receive issue 2 
6 - #2 is created as itype A, #1 changes to itype B
7 - receive a supplemental issue
8 - supplement is created as itype A, #2 remains itype A
9 - receive issue 3
10 - #3 is created as itype A, both #2 and supplement remain itype A
11 - receive issue 4
12 - #4 is created as itype A; supplement changes to itype B, #3 and #2 remain itype A
13 - receive issue 5
14 - #5 is created as itype A; #4 changes to itype B; #3 and #2 remain itype A

We should have seen:
 - #2 goes to itype B at step 8
 - supplement goes to itype B at step 10
 - #3 goes to itype B at step 12