Bug 36712

Summary: Alert "Maximum checkouts calculated from the circulation rule" is wrong with child itemtypes
Product: Koha Reporter: Victor Grousset/tuxayo <victor>
Component: CirculationAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
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 Victor Grousset/tuxayo 2024-04-26 23:56:00 UTC
When trying to checkout an item with a child itemtype, it fails to say that the parent rule applied and says "All item types"

Test plan:
1. have an itype BK (Books in sample data)
2. create an itype BK2, set BK as the parent to BK2
3. create a circ rule for All Patrons, item type BK (displays as "Books (All)"
   in the circ rules interface), setting total checkouts to 1
4. do not create any rule specifically for the BK2 itype
5. have 2 BK2 items (can be on the same bib record)
6. Try to checkout the 2 items
7. The alert mention matched circ rule is for "Item type: All item types"
8. This is wrong