Bug 40691

Summary: CCODE label not includes in case of 'wrong place' problem (and maybe others cases) into inventory.pl
Product: Koha Reporter: Thibaud Guillot (thibaud_g) <thibaud.guillot>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40691: Add ccode label on inventory table
Bug 40691: Add ccode label on inventory table

Description Thibaud Guillot (thibaud_g) 2025-08-22 09:09:07 UTC
Hello,

Just a quick fix: when you create an inventory of items and some items have “wrong place” problems, if they are associated with a collection code, the table will only display the code and not its label.
Comment 1 Thibaud Guillot (thibaud_g) 2025-08-22 09:30:08 UTC
Created attachment 185707 [details] [review]
Bug 40691: Add ccode label on inventory table

Test plan:

1) Perform an item inventory, be sure to have some items with problems
   :) like 'wrong place'
2) On table if item has 'wrong place' problem (maybe others cases ?) if
   it's linked to collection code just the AV code appears not the label
3) Apply this patch
4) Refresh page, normally that's okay now

Sponsored-by: BibLibre
Comment 2 Owen Leonard 2025-08-23 16:14:37 UTC
Created attachment 185726 [details] [review]
Bug 40691: Add ccode label on inventory table

Test plan:

1) Perform an item inventory, be sure to have some items with problems
   :) like 'wrong place'
2) On table if item has 'wrong place' problem (maybe others cases ?) if
   it's linked to collection code just the AV code appears not the label
3) Apply this patch
4) Refresh page, normally that's okay now

Sponsored-by: BibLibre
Signed-off-by: Owen Leonard <oleonard@myacpl.org>