Bug 40185

Summary: Allow more than one controlling license to be linked to an agreement
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: ERMAssignee: Jonathan Druart <jonathan.druart>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: clemens.tubach, jonathan.druart, jonathan.field, martin.renvoize, matt.blenkinsop, michaela.sieber, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39543
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2025-06-20 08:30:26 UTC
If you try to add a second license with the status 'controlling' to an
agreement record, you receive an error message.

Test Plan:
1) Enable ERMModule system preference
2) Add an agreement record
3) Add two license records with the status "controlling"
4) Edit the agreement record and associate both license records to the agreement
5) Try to link both licenses to the agreeement
-> Error

For organisations that need to control licenses for mulitple branches with one agreement this is quite limiting. 

We'd like to understand the use case or remove the limit.