Bug 40826

Summary: nbofuser not incremented when using a mana report
Product: Koha Reporter: elias.lorgnier <elias.lorgnier>
Component: Mana-kbAssignee: elias.lorgnier <elias.lorgnier>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: alex.arnaud, julian.maurice
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 40885    
Attachments: Bug 40826: nbofuser increment when importing report from mana
Bug 40826: nbofuser increment when importing report from mana

Description elias.lorgnier@biblibre.com 2025-09-17 14:06:14 UTC
When importing a report from mana, the nbofuser dosen't go up as it should. 

By looking at the code, I think that feature is not implemented, even though the function Koha::SharedContent::increment_entity_value, wich works for subscriptions is implemented. It is simply never used with reports.
Comment 1 elias.lorgnier@biblibre.com 2025-10-13 11:36:57 UTC
Created attachment 187831 [details] [review]
Bug 40826: nbofuser increment when importing report from mana
Comment 2 elias.lorgnier@biblibre.com 2025-10-13 12:13:11 UTC
Created attachment 187832 [details] [review]
Bug 40826: nbofuser increment when importing report from mana

Test plan:
1. Connect your koha instance to an instance of mana, with an account that is validated. (make sure activationdate is not null for your librarian)
2. Select a report already present on the mana instance to verify if the nbofuser will be incremented or create a new one
3. Import it in koha by searching it's name in the "create with mana" menu
4. Once imported, check on the mana instance that the nbofuser has been incremented.